summaryrefslogtreecommitdiffstats
path: root/k8s/plugin_testing_blueprints/blueprints/nginx-svc-env.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-env.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-env.yaml')
-rw-r--r--k8s/plugin_testing_blueprints/blueprints/nginx-svc-env.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/k8s/plugin_testing_blueprints/blueprints/nginx-svc-env.yaml b/k8s/plugin_testing_blueprints/blueprints/nginx-svc-env.yaml
new file mode 100644
index 0000000..b9e3fae
--- /dev/null
+++ b/k8s/plugin_testing_blueprints/blueprints/nginx-svc-env.yaml
@@ -0,0 +1,25 @@
+tosca_definitions_version: cloudify_dsl_1_3
+
+description: >
+ Simple blueprint to launch nginx as a "service component"
+ Set environment variables
+
+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'
+ image: nginx
+ docker_config:
+ healthcheck:
+ type: "http"
+ endpoint: "/"
+ ports:
+ - '80:0'
+ envs:
+ MY_ENV1: value1
+ MY_ENV0: value0