summaryrefslogtreecommitdiffstats
path: root/k8s/plugin_testing_blueprints/blueprints/nginx-svc-dmaap-mr-pub.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'k8s/plugin_testing_blueprints/blueprints/nginx-svc-dmaap-mr-pub.yaml')
-rw-r--r--k8s/plugin_testing_blueprints/blueprints/nginx-svc-dmaap-mr-pub.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/k8s/plugin_testing_blueprints/blueprints/nginx-svc-dmaap-mr-pub.yaml b/k8s/plugin_testing_blueprints/blueprints/nginx-svc-dmaap-mr-pub.yaml
new file mode 100644
index 0000000..177598c
--- /dev/null
+++ b/k8s/plugin_testing_blueprints/blueprints/nginx-svc-dmaap-mr-pub.yaml
@@ -0,0 +1,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
+ - 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