forked from gardener/garden-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acre.yaml
187 lines (157 loc) · 5.46 KB
/
acre.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# GARDENER_PREFIX: (default "test") use a a unique identifier for dns and gardener name
# BASE_CLOUDPROVIDER: cloudprovider for the base cluster
# Specify the deployed gardener version by using the GARDENER_VERSION or GARDENER_IMAGE_TAG and GARDENER_COMMIT
# GARDENER_VERSION: use a specific gardener version/tag
# GARDENER_IMAGE_TAG: gardener apiserver, controllermanager and scheduler version
# GARDENER_COMMIT: use a specific gardener commit
# Specify the supported kubernetes versions for the cloudprofiles by using K8S_VERSION or a file at K8S_VERSIONS
# K8S_VERSION: specify the kubernetes version
# K8S_VERSIONS: path to a file containing offered kubernetes versions per cloudprovider in the format (map[common.CloudProvider][]v1alpha1.ExpirableVersion)
# MACHINE_IMAGES: path to the file containing offered machine images per cloudprovider
dependency_versions: (( &temporary( read( __ctx.DIR "/crop/dependency-versions.yaml", "yaml" ) ) ))
gcp-credentials:
serviceaccount.json: (( read( "./gcloud.json", "text" ) ))
aws-credentials:
accessKeyID: (( env( "ACCESS_KEY_ID" ) ))
secretAccessKey: (( env( "SECRET_ACCESS_KEY_ID" ) ))
azure-credentials:
clientID: (( env( "AZ_CLIENT_ID" ) ))
clientSecret: (( env( "AZ_CLIENT_SECRET" ) ))
subscriptionID: (( env( "AZ_SUBSCRIPTION_ID" ) ))
tenantID: (( env( "AZ_TENANT_ID" ) ))
k8sVersions:
tmp:
<<: (( &temporary ))
gcp:
versions:
- version: (( env( "K8S_VERSION" ) || "1.15.5" ))
aws:
versions:
- version: (( env( "K8S_VERSION" ) || "1.15.5" ))
azure:
versions:
- version: (( env( "K8S_VERSION" ) || "1.15.5" ))
kubernetes:
(( read( env( "K8S_VERSIONS" ), "yaml") || tmp ))
extensionVersions: (( read( env( "GARDENER_EXTENSIONS" ), "yaml" ) || ~~ ))
machineImages:
(( read( env( "MACHINE_IMAGES" ), "yaml") || ~~ ))
monitoring-credentials:
username: (( env( "MONITORING_USERNAME" ) || ~~ ))
password: (( env( "MONITORING_PASSWORD" ) || ~~ ))
base_cluster_configs:
gcp:
type: gcp
region: europe-west1
zones:
- (( region "-b"))
- (( region "-c"))
- (( region "-d"))
credentials:
<<: (( .gcp-credentials ))
profile:
kubernetes: (( .k8sVersions.kubernetes.gcp || ~~ ))
machineImages: (( .machineImages.gcp || ~~ ))
aws:
type: aws
region: eu-west-1
zones:
- (( region "a"))
- (( region "b"))
- (( region "c"))
credentials:
<<: (( .aws-credentials ))
profile:
kubernetes: (( .k8sVersions.kubernetes.aws || ~~ ))
machineImages: (( .machineImages.aws || ~~ ))
azure:
type: azure
region: westeurope
credentials:
<<: (( .azure-credentials ))
profile:
kubernetes: (( .k8sVersions.kubernetes.azure || ~~ ))
machineImages: (( .machineImages.azure || ~~ ))
############################################################################
meta:
installationHandler:
path: crop/bin/installation-handler
config:
kubeconfig: ./kubeconfig
namespace: garden-setup-state
# backupLocation: (( env( "ROOT" ) ))
landscape:
name: (( ( env( "GARDENER_PREFIX" ) || "test" ) "-gardener-oq" ))
versions:
gardener:
apiserver:
image_tag: (( env( "GARDENER_VERSION" ) || env( "GARDENER_IMAGE_TAG" ) || .dependency_versions.versions.gardener.core.version ))
controller_manager:
image_tag: (( env( "GARDENER_VERSION" ) || env( "GARDENER_IMAGE_TAG" ) || .dependency_versions.versions.gardener.core.version ))
scheduler:
image_tag: (( env( "GARDENER_VERSION" ) || env( "GARDENER_IMAGE_TAG" ) || .dependency_versions.versions.gardener.core.version ))
tag: (( defined( commit ) ? ~~ :( env( "GARDENER_VERSION" ) || .dependency_versions.versions.gardener.core.version ) ))
commit: (( env( "GARDENER_COMMIT" ) || ~~ ))
extensions: (( .extensionVersions || ~~ ))
domain: (( ( env( "GARDENER_PREFIX" ) || "test" ) ".oq.gcp.dev.k8s.ondemand.com" ))
cluster:
networks:
nodes: 10.132.0.0/16
pods: 10.28.0.0/15
services: 10.31.240.0/20
gardener:
network-policies:
active: (( env( "NETWORK_POLICIES" ) || true ))
iaas:
- name: base
mode: seed
<<: (( .base_cluster_configs[env( "BASE_CLOUDPROVIDER" )] || .base_cluster_configs.gcp ))
- name: gcp
mode: cloudprofile
type: gcp
region: europe-west1
zones:
- (( region "-b"))
- (( region "-c"))
- (( region "-d"))
credentials:
<<: (( .gcp-credentials ))
profile:
kubernetes: (( .k8sVersions.kubernetes.gcp || ~~ ))
machineImages: (( .machineImages.gcp || ~~ ))
- name: aws
mode: cloudprofile
type: aws
region: eu-west-1
zones:
- (( region "a"))
- (( region "b"))
- (( region "c"))
credentials:
<<: (( .aws-credentials ))
profile:
kubernetes: (( .k8sVersions.kubernetes.aws || ~~ ))
machineImages: (( .machineImages.aws || ~~ ))
- name: azure
mode: cloudprofile
type: azure
region: westeurope
credentials:
<<: (( .azure-credentials ))
profile:
kubernetes: (( .k8sVersions.kubernetes.azure || ~~ ))
machineImages: (( .machineImages.azure || ~~ ))
monitoring:
active: true
<<: (( .monitoring-credentials ))
dns:
type: google-clouddns
credentials: (( .gcp-credentials ))
etcd:
backup:
resourceGroup: (( .landscape.name ))
identity:
users:
- email: "[email protected]"
username: "example"
password: (( rand("A-Z", 10) ))