kustomization.yaml
1.09 KB
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
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
configMapGenerator:
- name: deployment-config
options:
disableNameSuffixHash: true
# behavior: merge
envs:
- deployment-config.env
replacements:
- source:
kind: ConfigMap
version: v1
name: deployment-config
fieldPath: data.PARENT_POD_NAME
targets:
- select:
kind: Pod
name: postgresql-server-
fieldPaths:
- metadata.ownerReferences.0.name
- select:
kind: Service
name: postgresql-server-
fieldPaths:
- metadata.ownerReferences.0.name
- source:
kind: ConfigMap
version: v1
name: deployment-config
fieldPath: data.PARENT_POD_UID
targets:
- select:
kind: Pod
name: postgresql-server-
fieldPaths:
- metadata.ownerReferences.0.uid
- metadata.labels.owner-uid
- select:
kind: Service
name: postgresql-server-
fieldPaths:
- metadata.ownerReferences.0.uid
- spec.selector.owner-uid