summaryrefslogtreecommitdiffstats
path: root/robot/assets/usecases/5gbulkpm/k8s-sftp.yaml
blob: c865de382aab38a9d8d8e25b555a0a1aa88548c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
tosca_definitions_version: cloudify_dsl_1_3
imports:
  - 'http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml'
  - 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml'
inputs:
  tag_version:
    type: string
    description: Docker image to be used
    default: 'atmoz/sftp'
  replicas:
    type: integer
    description: Number of instances
    default: 1
node_templates:
  sftpserver:
    type: dcae.nodes.ContainerizedPlatformComponent
    interfaces:
      cloudify.interfaces.lifecycle:
        start:
          inputs:
            envs:
              SFTP_USERS: bulkpm:bulkpm:::upload
            ports:
              - '22:32222'
    properties:
      name: "sftpserver"
      dns_name: "sftpserver"
      image: { get_input: tag_version }
      replicas: { get_input: replicas }