-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathkustomization.yaml
More file actions
52 lines (47 loc) · 1.7 KB
/
kustomization.yaml
File metadata and controls
52 lines (47 loc) · 1.7 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
48
49
50
51
52
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Adds namespace to all resources.
namespace: default
# Value of this field is prepended to the names of all resources,
# e.g. a Deployment named "manager" becomes "coherence-operator-manager".
namePrefix: "coherence-operator-"
resources:
- ../crd-small
- ../rbac
- ../manager
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
#- ../prometheus
# [METRICS] Expose the controller manager metrics service.
- metrics_service.yaml
# [NETWORK POLICY] Protect the /metrics endpoint and Webhook Server with NetworkPolicy.
# Only Pod(s) running a namespace labeled with 'metrics: enabled' will be able to gather the metrics.
# Only CR(s) which requires webhooks and are applied on namespaces labeled with 'webhooks: enabled' will
# be able to communicate with the Webhook Server.
#- ../network-policy
labels:
- pairs:
control-plane: coherence
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/version: "3.5.8"
app.kubernetes.io/part-of: coherence-operator
replacements:
- source:
kind: Service
name: rest
targets:
- select:
kind: Deployment
name: controller-manager
fieldPaths:
- spec.template.spec.containers.0.env.[name=SERVICE_NAME].value
- source:
kind: Deployment
name: controller-manager
fieldPath: spec.template.spec.containers.0.image
targets:
- select:
kind: Deployment
name: controller-manager
fieldPaths:
- spec.template.spec.containers.0.env.[name=RELATED_IMAGE_COHERENCE_OPERATOR].value
- spec.template.spec.containers.0.env.[name=OPERATOR_IMAGE].value