blob: 2b516501952e6188e51bf9b5ea75c5683785137d (
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
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
|