R10 tag/path update
[dcaegen2/platform/plugins.git] / k8s / plugin_testing_blueprints / blueprints / nginx-svc-loc.yaml
1 tosca_definitions_version: cloudify_dsl_1_3
2
3 description: >
4   Simple blueprint to launch nginx as a "service component"
5   Specify a location  (need to set up a multi-site configuration)
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         location_id: gallus
17         image: nginx
18         docker_config:
19             healthcheck:
20                 type: "http"
21                 endpoint: "/"
22             policy:
23                 trigger_type: "docker"
24                 script_path: "/notify.sh"
25     interfaces:
26       cloudify.interfaces.lifecycle:
27         start:
28           inputs:
29             ports:
30               - '80:0'