-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKustomize
62 lines (55 loc) · 1.25 KB
/
Kustomize
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
webserver:
image:
repository: my-registry/my-webserver-image
tag: "1.2.3"
scheduler:
image:
repository: my-registry/my-scheduler-image
tag: "4.5.6"
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../airflow-helm-chart/charts/airflow
namespace: airflow
configMapGenerator:
- name: airflow-values
files:
- values.yaml
patches:
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: airflow-webserver
spec:
template:
spec:
containers:
- name: airflow-webserver
env:
- name: LOAD_EXAMPLES
value: "yes"
image: $(DOCKER_REGISTRY)/my-registry/my-webserver-image:$(WEB_IMAGE_TAG)
target:
kind: Deployment
name: airflow-webserver
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: airflow-scheduler
spec:
template:
spec:
containers:
- name: airflow-scheduler
image: $(DOCKER_REGISTRY)/my-registry/my-scheduler-image:$(SCHEDULER_IMAGE_TAG)
target:
kind: Deployment
name: airflow-scheduler
images:
- name: my-registry/my-webserver-image
newTag: 1.2.3
- name: my-registry/my-scheduler-image
newTag: 4.5.6