-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy path50_cloud-ingress-operator.Deployment.yaml
77 lines (77 loc) · 2.29 KB
/
50_cloud-ingress-operator.Deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloud-ingress-operator
namespace: openshift-cloud-ingress-operator
spec:
replicas: 1
selector:
matchLabels:
name: cloud-ingress-operator
template:
metadata:
labels:
name: cloud-ingress-operator
spec:
serviceAccountName: cloud-ingress-operator
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: node-role.kubernetes.io/infra
operator: Exists
weight: 1
tolerations:
- operator: Exists
key: node-role.kubernetes.io/infra
effect: NoSchedule
volumes:
- configMap:
defaultMode: 420
items:
- key: ca-bundle.crt
path: tls-ca-bundle.pem
name: trusted-ca-bundle
name: trusted-ca-bundle
- name: bound-sa-token
projected:
sources:
- serviceAccountToken:
path: token
audience: openshift
containers:
- name: cloud-ingress-operator
# Replace this with the built image name
image: REPLACE_IMAGE
command:
- cloud-ingress-operator
imagePullPolicy: Always
env:
# "" so that the cache can read objects outside its namespace
- name: WATCH_NAMESPACE
value: "openshift-cloud-ingress-operator,openshift-ingress,openshift-ingress-operator,openshift-kube-apiserver,openshift-machine-api"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "cloud-ingress-operator"
resources:
requests:
cpu: "200m"
limits:
memory: "4G"
livenessProbe:
httpGet:
path: /healthz
scheme: HTTP
port: 8000
initialDelaySeconds: 45
periodSeconds: 75
volumeMounts:
- mountPath: /etc/pki/ca-trust/extracted/pem
name: trusted-ca-bundle
readOnly: true
- name: bound-sa-token
mountPath: /var/run/secrets/openshift/serviceaccount