From 43f0c2c84a1d1c0e9dd49e41c748f56b5820760b Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Wed, 12 Aug 2020 11:30:41 -0400 Subject: Add plugin testing blueprints Issue-ID: DCAEGEN2-2352 Signed-off-by: Jack Lucas Change-Id: Icacef912fc24d2814d513bd2df2a6aaed117ebb5 --- .../blueprints/nginx-svc-bad.yaml | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 k8s/plugin_testing_blueprints/blueprints/nginx-svc-bad.yaml (limited to 'k8s/plugin_testing_blueprints/blueprints/nginx-svc-bad.yaml') diff --git a/k8s/plugin_testing_blueprints/blueprints/nginx-svc-bad.yaml b/k8s/plugin_testing_blueprints/blueprints/nginx-svc-bad.yaml new file mode 100644 index 0000000..2b51650 --- /dev/null +++ b/k8s/plugin_testing_blueprints/blueprints/nginx-svc-bad.yaml @@ -0,0 +1,30 @@ +tosca_definitions_version: cloudify_dsl_1_3 + +description: > + Simple blueprint to launch nginx as a "service component" + Fails because nginx port (80) isn't exposed and health check fails + max_wait set to 120 so timeout occurs quickly + expect k8s service/deployment to be created, pod started + but plugin will clean up k8s after timeout + +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: + - '20880:0' + interfaces: + cloudify.interfaces.lifecycle: + start: + inputs: + max_wait: 120 -- cgit 1.2.3-korg