forked from manishmarahatta/kong-dist-google-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cluster.jinja
38 lines (35 loc) · 1.19 KB
/
cluster.jinja
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
31
32
33
34
35
36
37
38
{% set CLUSTER_NAME = env['name'] %}
{% set TYPE_NAME = CLUSTER_NAME + '-type' %}
resources:
- name: {{ CLUSTER_NAME }}
type: container.v1.cluster
properties:
zone: {{ properties['zone'] }}
cluster:
name: {{ CLUSTER_NAME }}
initialNodeCount: {{ properties['numNodes'] }}
nodeConfig:
machine_type: {{ properties['machineType'] }}
oauthScopes:
- https://www.googleapis.com/auth/compute
- https://www.googleapis.com/auth/devstorage.read_only
- https://www.googleapis.com/auth/logging.write
- https://www.googleapis.com/auth/monitoring
masterAuth:
username: {{ properties['username'] }}
password: {{ properties['password'] }}
- name: {{ TYPE_NAME }}
type: deploymentmanager.alpha.type
properties:
configurableService:
options:
validationOptions:
schemaValidation: IGNORE_WITH_WARNINGS
descriptorUrl: https://$(ref.{{ CLUSTER_NAME }}.endpoint)/swaggerapi/api/v1
credential:
basicAuth:
user: $(ref.{{ CLUSTER_NAME }}.masterAuth.username)
password: $(ref.{{ CLUSTER_NAME }}.masterAuth.password)
outputs:
- name: clusterType
value: {{ TYPE_NAME }}