summaryrefslogtreecommitdiffstats
path: root/k8s/plugin_testing_blueprints/blueprints/nginx-svc-lifecycle-inputs.yaml
blob: 12370117693474680f6336e2d06c2dd3e1da1863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
tosca_definitions_version: cloudify_dsl_1_3

description: >
  Simple blueprint to launch nginx as a "service component"
  Set ports and envs via input to lifecycle operation

imports:
  - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
  - plugin:k8splugin?version=>=3.0.0,<4.0.0

node_templates:
  web_server:
    type: dcae.nodes.ContainerizedServiceComponent
    properties:
      service_component_type: 'nginx-web'
      image: nginx
      docker_config:
        healthcheck:
          type: "http"
          endpoint: "/"
    interfaces:
      cloudify.interfaces.lifecycle:
        start:
          inputs:
            ports:
              - '80:0'
            envs:
              MY_ENV1: value1
              MY_ENV0: value0