d080fd703661d6d569079d3fccc62d7fdd58ec4e
[dcaegen2/platform/plugins.git] / k8s / plugin_testing_blueprints / blueprints / nginx-svc-script-bad.yaml
1 tosca_definitions_version: cloudify_dsl_1_3\r
2 \r
3 description: >\r
4   Simple blueprint to launch nginx as a "service component"\r
5   Fails because healthcheck script always returns failure\r
6   max_wait set to 120 so timeout occurs quickly\r
7   expect k8s service/deployment to be created, pod started\r
8   but plugin will clean up k8s after timeout\r
9 \r
10 imports:\r
11   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\r
12   - plugin:k8splugin?version=3.0.0\r
13 \r
14 node_templates:\r
15   web_server:\r
16     type: dcae.nodes.ContainerizedServiceComponent\r
17     properties:\r
18       service_component_type: 'nginx-web'\r
19       image: nginx\r
20       docker_config:\r
21         healthcheck:\r
22           type: "script"\r
23           script: "/bin/false"\r
24         ports:\r
25           - '80:0'\r
26     interfaces:\r
27       cloudify.interfaces.lifecycle:\r
28         start:\r
29           inputs:\r
30             max_wait: 120\r