R10 tag/path update
[dcaegen2/platform/plugins.git] / k8s / plugin_testing_blueprints / blueprints / nginx-svc-dmaap-mr-pub.yaml
1 tosca_definitions_version: cloudify_dsl_1_3
2
3 description: >
4   Simple blueprint to launch nginx as a "service component"
5   Create MR topic and set up component as subscriber
6
7 imports:
8   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
9   - plugin:k8splugin?version=>=3.0.0,<4.0.0
10   - plugin:dmaap?version=1.5.0
11
12 node_templates:
13   topic00:
14     type: dcaegen2.nodes.Topic
15     properties:
16       topic_name: topic-002
17
18   web_server:
19     type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
20     properties:
21       service_component_type: 'nginx-web'
22       image: nginx
23       docker_config:
24         healthcheck:
25           type: "http"
26           endpoint: "/"
27         ports:
28           - '80:0'
29       streams_publishes:
30         - name: topic00
31           location: san-francisco
32           client_role: org.onap.dmaap.mr.topic-002.publisher
33
34     relationships:
35       - type: dcaegen2.relationships.publish_events
36         target: topic00