summaryrefslogtreecommitdiffstats
path: root/k8s/plugin_testing_blueprints/blueprints/nginx-svc-log.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-log.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-log.yaml')
-rw-r--r--k8s/plugin_testing_blueprints/blueprints/nginx-svc-log.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/k8s/plugin_testing_blueprints/blueprints/nginx-svc-log.yaml b/k8s/plugin_testing_blueprints/blueprints/nginx-svc-log.yaml
new file mode 100644
index 0000000..61dc274
--- /dev/null
+++ b/k8s/plugin_testing_blueprints/blueprints/nginx-svc-log.yaml
@@ -0,0 +1,24 @@
+tosca_definitions_version: cloudify_dsl_1_3
+
+description: >
+ Simple blueprint to launch nginx as a "service component"
+ Specifies a log directory--expect logging sidecar to be deployed
+
+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
+ log_info:
+ log_directory: "/opt/logs"
+ docker_config:
+ healthcheck:
+ type: "http"
+ endpoint: "/"
+ ports:
+ - '80:0'