R10 tag/path update
[dcaegen2/platform/plugins.git] / k8s / plugin_testing_blueprints / blueprints / nginx-svc-lifecycle-inputs.yaml
1 tosca_definitions_version: cloudify_dsl_1_3
2
3 description: >
4   Simple blueprint to launch nginx as a "service component"
5   Set ports and envs via input to lifecycle operation
6
7 imports:
8   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
9   - plugin:k8splugin?version=>=3.0.0,<4.0.0
10
11 node_templates:
12   web_server:
13     type: dcae.nodes.ContainerizedServiceComponent
14     properties:
15       service_component_type: 'nginx-web'
16       image: nginx
17       docker_config:
18         healthcheck:
19           type: "http"
20           endpoint: "/"
21     interfaces:
22       cloudify.interfaces.lifecycle:
23         start:
24           inputs:
25             ports:
26               - '80:0'
27             envs:
28               MY_ENV1: value1
29               MY_ENV0: value0