summaryrefslogtreecommitdiffstats
path: root/runtime/src/test/resources/clds/new-microservice.yaml
blob: 70c1eda467973c940706da79b7ef0478c23c43a7 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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/R5/k8splugin/1.4.13/k8splugin_types.yaml"
  - "https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R5/clamppolicyplugin/1.0.0/clamppolicyplugin_types.yaml"

inputs:
  tag_version:
    type: string
    description: docker image
  policy_model_id:
    type: 'string'
    default: 'onap.policies.monitoring.dcae-pm-initiation-handler'
  policy_id:
    type: 'string'
    default: 'onap.policies.monitoring.dcae-pm-initiation-handler'

node_templates:
  pmsh:
    relationships:
      - type: cloudify.relationships.depends_on
        target: pmsh-policy

    interfaces:
      cloudify.interfaces.lifecycle:
        start:
          inputs:
            ports:
              - '8443:0'
              - '8081:0'
    properties:
      image:
        get_input: tag_version
      replicas: 1
      service_component_type: "pmsh"
      service_component_name_override: "pmsh"
    type: dcae.nodes.ContainerizedServiceComponent

  pmsh-policy:
    type: clamp.nodes.policy
    properties:
      policy_model_id:
        get_input: policy_model_id
      policy_id:
        get_input: policy_id