forked from IBM/ibm-common-service-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoperator-deployment.yaml
More file actions
99 lines (99 loc) · 3.15 KB
/
operator-deployment.yaml
File metadata and controls
99 lines (99 loc) · 3.15 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
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: ibm-common-service-operator
namespace: {{ .Values.operatorNamespace }}
spec:
replicas: 1
selector:
matchLabels:
name: ibm-common-service-operator
strategy:
type: Recreate
template:
metadata:
annotations:
productID: 068a62892a1e4db39641342e592daa25
productMetric: FREE
productName: IBM Cloud Platform Common Services
labels:
app.kubernetes.io/instance: ibm-common-service-operator
app.kubernetes.io/managed-by: ibm-common-service-operator
app.kubernetes.io/name: ibm-common-service-operator
name: ibm-common-service-operator
intent: projected
productName: IBM_Cloud_Platform_Common_Services
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
- ppc64le
- s390x
containers:
- name: ibm-common-service-operator
image: {{ .Values.imagePullPrefix}}/{{ .Values.imageRegistryNamespaceOperator}}/{{ .Values.operatorImage }}:{{ .Values.operatorVersion }}
command:
- /manager
env:
- name: OPERATOR_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: WATCH_NAMESPACE
valueFrom:
configMapKeyRef:
key: namespaces
name: namespace-scope
optional: true
- name: NO_OLM
value: "true"
- name: ENABLE_WEBHOOKS
value: "false"
- name: OPERATOR_NAME
value: ibm-common-service-operator
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 10
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 120
periodSeconds: 60
timeoutSeconds: 10
readinessProbe:
failureThreshold: 10
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 20
timeoutSeconds: 20
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
ephemeral-storage: 256Mi
memory: 200Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
imagePullSecrets:
- name: {{ .Values.imagePullSecret }}
serviceAccountName: ibm-common-service-operator
terminationGracePeriodSeconds: 10