summaryrefslogtreecommitdiffstats
path: root/k8s/plugin_testing_blueprints/blueprints/nginx-svc-loc.yaml
diff options
context:
space:
mode:
authorJack Lucas <jflos@sonoris.net>2020-08-12 11:30:41 -0400
committerJack Lucas <jflos@sonoris.net>2020-08-12 11:33:09 -0400
commit43f0c2c84a1d1c0e9dd49e41c748f56b5820760b (patch)
tree4d5eb9a325684abdb4bfaf66d2f6f9019bd654ea /k8s/plugin_testing_blueprints/blueprints/nginx-svc-loc.yaml
parent75758e6b5202c3a913c7a3509c3596a11c6270ad (diff)
Add plugin testing blueprints
Issue-ID: DCAEGEN2-2352 Signed-off-by: Jack Lucas <jflos@sonoris.net> Change-Id: Icacef912fc24d2814d513bd2df2a6aaed117ebb5
Diffstat (limited to 'k8s/plugin_testing_blueprints/blueprints/nginx-svc-loc.yaml')
-rw-r--r--k8s/plugin_testing_blueprints/blueprints/nginx-svc-loc.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/k8s/plugin_testing_blueprints/blueprints/nginx-svc-loc.yaml b/k8s/plugin_testing_blueprints/blueprints/nginx-svc-loc.yaml
new file mode 100644
index 0000000..e1863c6
--- /dev/null
+++ b/k8s/plugin_testing_blueprints/blueprints/nginx-svc-loc.yaml
@@ -0,0 +1,30 @@
+tosca_definitions_version: cloudify_dsl_1_3
+
+description: >
+ Simple blueprint to launch nginx as a "service component"
+ Specify a location (need to set up a multi-site configuration)
+
+imports:
+ - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
+ - plugin:k8splugin?version=3.0.0
+
+node_templates:
+ web_server:
+ type: dcae.nodes.ContainerizedServiceComponent
+ properties:
+ service_component_type: 'nginx-web'
+ location_id: gallus
+ image: nginx
+ docker_config:
+ healthcheck:
+ type: "http"
+ endpoint: "/"
+ policy:
+ trigger_type: "docker"
+ script_path: "/notify.sh"
+ interfaces:
+ cloudify.interfaces.lifecycle:
+ start:
+ inputs:
+ ports:
+ - '80:0'