forked from apigee/ansible-apigee-hybrid-accelerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vars.yaml
469 lines (435 loc) · 14.3 KB
/
vars.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
# Path to download/generate files
setup_path: "/tmp"
# Set `cert_manager_version: : v1.7.2` refer: https://cloud.google.com/apigee/docs/hybrid/v1.10/install-cert-manager
install_cert_manager: false
cert_manager_version: v1.13.3
################################################ TLS certificate details ################################################
# Set `generate_certificates: true`` to generate self signed certifcates
# This will also create the K8s secrets to referece in overrides.yaml unless overidden below
generate_certificates: false
# Set this only when `generate_certificates: true`
# Use `cert_cn` to set certifcate CN
# cert_cn: apigee.com
################################################ TLS certificate details ################################################
################################################ Service Account details ################################################
# Set to true to download service accounts JSON and create K8s Secrets
create_service_account: false
# Set this only when `create_service_account: true`
# Set to `prod` OR `non-prod` to generate service accounts based on https://cloud.google.com/apigee/docs/hybrid/v1.10/sa-about#recommended-sas
deployment_environment: prod
# Set this only when `create_service_account: false`
# Set the Synchronizer service account to run https://cloud.google.com/apigee/docs/hybrid/v1.10/install-enable-synchronizer-access
synchronizer_prod_svc_account: apigee-hybrid-user
################################################ Service Account details ################################################
################################################ Helm details ################################################
# refer: https://cloud.google.com/apigee/docs/hybrid/preview/helm-install#pull-apigee-helm-charts
helm_chart_repo: oci://us-docker.pkg.dev/apigee-release/apigee-hybrid-helm-charts
helm_chart_version: 1.13.1
helm_charts:
- apigee-operator
- apigee-datastore
- apigee-env
- apigee-ingress-manager
- apigee-org
- apigee-redis
- apigee-telemetry
- apigee-virtualhost
################################################helm details ################################################
################################################Kubeconfigs ################################################
kubeconfigs:
# set `primary: <Path to kubeconfig of K8s cluster>` to deploy Apigee Hybrid Primary DC
primary: /app/kubeconfig
# set `secondary: <Path to kubeconfig of K8s cluster>` to deploy Apigee Hybrid Secondary DC
# secondary: /tmp/dc2.config
################################################Kubeconfigs ################################################
################################################Post Setup Validation Details ################################################
internet_access: true
validate_api_redeploy: false
################################################Post Setup Validation Details ################################################
################################################Apigee Hybrid Helm Values ################################################
## To fill this section refer the https://cloud.google.com/apigee/docs/hybrid/v1.10/config-prop-ref
overrides:
k8sCluster:
name: apigee-hybrid-ansible1
region: asia-south2
#
# The closet GCP region of the k8s cluster
#
# NOTE: StackDriver (SD) does not provide logging regionalization yet: go/logging-regionalization
# but the region is still required as it is one of the mandatory labels that the logs are tagged
# with when pushed to SD.
#
# Currently, projectID and projectIDRuntime are being used by the apigee-logger and the apigee-metrics
# to push their data in the below specific GCP project with the cluster name and the GCP region. The
# projectIDRuntime property is optional. If not used, it is assumed that projectID value is
# used for both the Apigee organization's GCP project and the runtime K8S cluster's project.
#
gcp:
region: us-central1
projectID: shared-sabre-wolverine
revision: "1103"
instanceID: "asdasdmasdmasmd"
contractProvider: https://apigee.googleapis.com
#
# For Telemetry support for Multi-Org cluster. The feature is disabled by default.
# Enabling this flag will export the metrics from Multi-Org cluster to the
# "gcp.projectID" overrides.yaml configuration.
#
multiOrgCluster: false
#
# k8s secret name to use for pulling the docker images.
#
imagePullSecrets:
httpProxy:
host: 172.23.3.99
port: 8080
scheme: HTTP
# username: test
# password: test1
nodeSelector:
requiredForScheduling: true
apigeeRuntime:
key: "cloud.google.com/gke-nodepool"
value: "apigee-runtime1"
apigeeData:
key: "cloud.google.com/gke-nodepool"
value: "apigee-data"
#
# Enables strict validation of service account permissions. This uses Cloud Resource Manager API
# method "testIamPermissions" to verify that the provided service account has the required
# permissions. In the case of service accounts for an Apigee Org, the project ID check is the one
# mapped to the Organization. For Metrics and Logger, the project checked is based on the
# "gcp.projectID" overrides.yaml configuration.
validateServiceAccounts: true
#
# Enables strict validation for the link between the Apigee Org and GCP project, as well
# as if the environment groups already exist.
validateOrg: true
#
# Enables org scoped UDCA deployment rather than the per-environment UDCA deployment model
orgScopedUDCA: true
virtualhosts:
- name: test
# selector:
# app1: apigee-ingressgateway
# tlsMode: MUTUAL
sslSecret: apigee-tls-secret
hostnames:
- test.api.example.com
# - name: test2
# selector:
# # app1: apigee-ingressgateway
# sslSecret:
# hostnames:
# - test2.api.example.com
envs:
- name: test1
synchronizer:
replicaCountMin: 1
replicaCountMax: 4
runtime:
replicaCountMax: 3
# httpProxy:
# host: 172.23.3.99
# port: 8080
# scheme: HTTP
# username: testenv
# password: testenv1
- name: test2
mart:
serviceAccountRef: apigee-hybrid-secret
replicaCountMin: 1
replicaCountMax: 2
image:
url: "gcr.io/apigee-release/hybrid/apigee-mart-server"
tag: "1.13.1"
pullPolicy: IfNotPresent
resources:
requests:
cpu: 500m
memory: 512Mi
mintTaskScheduler:
image:
url: "gcr.io/apigee-release/hybrid/apigee-mint-task-scheduler"
tag: "1.13.1"
pullPolicy: IfNotPresent
resources:
requests:
cpu: 500m
memory: 512Mi
#
# Apigee Sychronizer.
#
synchronizer:
replicaCountMin: 1
replicaCountMax: 4
serviceAccountRef: apigee-hybrid-secret
image:
url: "gcr.io/apigee-release/hybrid/apigee-synchronizer"
tag: "1.13.1"
pullPolicy: IfNotPresent
resources:
requests:
cpu: 100m
memory: 512Mi
#
# Apigee Runtime.
#
runtime:
serviceAccountRef: apigee-hybrid-secret
replicaCountMin: 1
replicaCountMax: 4
image:
url: "gcr.io/apigee-release/hybrid/apigee-runtime"
tag: "1.13.1"
pullPolicy: IfNotPresent
resources:
requests:
cpu: 500m
memory: 512Mi
#
# Apigee Cassandra.
#
cassandra:
hostNetwork: false
auth:
secret: ""
image:
url: "gcr.io/apigee-release/hybrid/apigee-hybrid-cassandra-client"
tag: "1.13.1"
pullPolicy: IfNotPresent
replicaCount: 3
# multiRegionSeedHost:
storage:
storageClass: custom-sc
storageClassProperties:
provisionerType: gke # one of gke, anthos-on-vmware, aks, eks
parameters:
type: pd-balanced
capacity: 10Gi
image:
url: "gcr.io/apigee-release/hybrid/apigee-hybrid-cassandra"
tag: "1.13.1"
pullPolicy: IfNotPresent
resources:
requests:
cpu: 500m
memory: 1Gi
maxHeapSize: 512M
heapNewSize: 100M
# datacenter: "dc-1"
backup:
enabled: false
image:
url: "gcr.io/apigee-release/hybrid/apigee-cassandra-backup-utility"
tag: "1.13.1"
pullPolicy: IfNotPresent
serviceAccountRef: apigee-hybrid-secret
schedule: "0 2 * * *"
dbStorageBucket:
restore:
enabled: false
snapshotTimestamp:
image:
url: "gcr.io/apigee-release/hybrid/apigee-cassandra-backup-utility"
tag: "1.13.1"
pullPolicy: IfNotPresent
serviceAccountRef: apigee-hybrid-secret
dbStorageBucket: ""
#
# Apigee UDCA.
#
udca:
serviceAccountRef: apigee-hybrid-secret
replicaCountMin: 1
replicaCountMax: 4
image:
url: "gcr.io/apigee-release/hybrid/apigee-udca"
tag: "1.13.1"
pullPolicy: IfNotPresent
resources:
requests:
cpu: 250m
memory: 256Mi
fluentd:
image:
url: "gcr.io/apigee-release/hybrid/apigee-stackdriver-logging-agent"
tag: "1.9.12-2"
pullPolicy: IfNotPresent
resources:
limits:
memory: 500Mi
requests:
cpu: 500m
memory: 250Mi
#
# Hybrid container logger.
#
logger:
enabled: false
terminationGracePeriodSeconds: 30
image:
url: "gcr.io/apigee-release/hybrid/apigee-fluent-bit"
tag: "1.9.9"
pullPolicy: IfNotPresent
serviceAccountRef: apigee-hybrid-secret
resources:
limits:
cpu: 200m
memory: 500Mi
requests:
cpu: 100m
memory: 250Mi
# proxyURL: http://172.23.3.99:8080
#
# Apigee Metrics.
#
metrics:
enabled: true
serviceAccountRef: apigee-hybrid-secret
appStackdriverExporter:
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 128m
memory: 512Mi
proxyStackdriverExporter:
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 128m
memory: 512Mi
adapter:
image:
url: "gcr.io/apigee-release/hybrid/apigee-prometheus-adapter"
tag: "v0.11.0"
pullPolicy: IfNotPresent
serviceAccountRef: apigee-hybrid-secret
prometheus:
image:
url: "gcr.io/apigee-release/hybrid/apigee-prom-prometheus"
tag: "v2.45.0"
pullPolicy: IfNotPresent
sdSidecar:
image:
url: "gcr.io/apigee-release/hybrid/apigee-stackdriver-prometheus-sidecar"
tag: "0.9.0"
pullPolicy: IfNotPresent
# proxyURL: http://172.23.3.99:8080
# Apigee Connect Agent
connectAgent:
serviceAccountRef: apigee-hybrid-secret
image:
url: "gcr.io/apigee-release/hybrid/apigee-connect-agent"
tag: "1.13.1"
pullPolicy: IfNotPresent
replicaCountMin: 1
replicaCountMax: 1
resources:
requests:
cpu: 200m
memory: 128Mi
# Apigee Watcher
watcher:
serviceAccountRef: apigee-hybrid-secret
image:
url: "gcr.io/apigee-release/hybrid/apigee-watcher"
tag: "1.13.1"
pullPolicy: IfNotPresent
replicaCountMin: 1
replicaCountMax: 1
resources:
requests:
cpu: 200m
memory: 128Mi
# Apigee Redis
redis:
image:
url: "gcr.io/apigee-release/hybrid/apigee-redis"
tag: "1.13.1"
pullPolicy: IfNotPresent
replicaCount: 2
resources:
requests:
cpu: 500m
envoy:
image:
url: "gcr.io/apigee-release/hybrid/apigee-envoy"
tag: "v1.27.0"
pullPolicy: IfNotPresent
replicaCountMin: 1
replicaCountMax: 1
resources:
requests:
cpu: "500m"
# Apigee Operators controller
ao:
image:
url: "gcr.io/apigee-release/hybrid/apigee-operators"
tag: "1.13.1"
pullPolicy: IfNotPresent
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: 200m
memory: 512Mi
installer:
image:
url: "gcr.io/apigee-release/hybrid/apigee-installer"
tag: "1.13.1"
pullPolicy: IfNotPresent
# kube rbac proxy
kubeRBACProxy:
image:
url: "gcr.io/apigee-release/hybrid/apigee-kube-rbac-proxy"
tag: "v0.14.2"
pullPolicy: IfNotPresent
# Apigee istiod.
istiod:
image:
url: "gcr.io/apigee-release/hybrid/apigee-asm-istiod"
tag: "1.18.7-asm.4-distroless"
pullPolicy: IfNotPresent
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: 200m
memory: 512Mi
accessLogFile: '/dev/stdout'
accessLogFormat: '{"start_time":"%START_TIME%","remote_address":"%DOWNSTREAM_DIRECT_REMOTE_ADDRESS%","user_agent":"%REQ(USER-AGENT)%","host":"%REQ(:AUTHORITY)%","request":"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%","request_time":"%DURATION%","status":"%RESPONSE_CODE%","status_details":"%RESPONSE_CODE_DETAILS%","bytes_received":"%BYTES_RECEIVED%","bytes_sent":"%BYTES_SENT%","upstream_address":"%UPSTREAM_HOST%","upstream_response_flags":"%RESPONSE_FLAGS%","upstream_response_time":"%RESPONSE_DURATION%","upstream_service_time":"%RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)%","upstream_cluster":"%UPSTREAM_CLUSTER%","x_forwarded_for":"%REQ(X-FORWARDED-FOR)%","request_method":"%REQ(:METHOD)%","request_path":"%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%","request_protocol":"%PROTOCOL%","tls_protocol":"%DOWNSTREAM_TLS_VERSION%","request_id":"%REQ(X-REQUEST-ID)%","sni_host":"%REQUESTED_SERVER_NAME%","apigee_dynamic_data":"%DYNAMIC_METADATA(envoy.lua)%"}'
# Apigee Ingressgateway.
ingressGateway:
image:
url: "gcr.io/apigee-release/hybrid/apigee-asm-ingress"
tag: "1.18.7-asm.4-distroless"
pullPolicy: IfNotPresent
resources:
limits:
cpu: 2000m
memory: 1Gi
requests:
cpu: 300m
memory: 128Mi
################################################Apigee Hybrid Helm Values ############