blob: 056f2386cfed4237a0687f4559d19450770b5c89 (
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
|
tosca_definitions_version: cloudify_dsl_1_3
description: >
Simple blueprint to launch nginx as a "service component"
Create MR topic and set up component as subscriber
imports:
- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
- plugin:k8splugin?version=>=3.0.0,<4.0.0
- plugin:dmaap?version=1.5.0
node_templates:
topic00:
type: dcaegen2.nodes.Topic
properties:
topic_name: topic-002
web_server:
type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
properties:
service_component_type: 'nginx-web'
image: nginx
docker_config:
healthcheck:
type: "http"
endpoint: "/"
ports:
- '80:0'
streams_publishes:
- name: topic00
location: san-francisco
client_role: org.onap.dmaap.mr.topic-002.publisher
relationships:
- type: dcaegen2.relationships.publish_events
target: topic00
|