-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathoperator.yaml
More file actions
106 lines (106 loc) · 3.15 KB
/
Copy pathoperator.yaml
File metadata and controls
106 lines (106 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
100
101
102
103
104
105
106
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: deployment-validation-operator
name: deployment-validation-operator
annotations:
ignore-check.kube-linter.io/minimum-three-replicas: "This deployment uses 1 pod as currently replicating does not replicate metric data causing installation issues"
spec:
replicas: 1
selector:
matchLabels:
app: deployment-validation-operator
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
name: deployment-validation-operator
app: deployment-validation-operator
spec:
nodeSelector:
kubernetes.io/arch: amd64
tolerations:
- key: node-role.kubernetes.io/infra
operator: Exists
effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/infra
operator: Exists
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- deployment-validation-operator
topologyKey: kubernetes.io/hostname
weight: 100
containers:
- image: quay.io/deployment-validation-operator/dv-operator:latest
imagePullPolicy: Always
name: deployment-validation-operator
args:
- --config /config/deployment-validation-operator-config.yaml
resources:
requests:
memory: "400Mi"
cpu: "50m"
limits:
memory: "600Mi"
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 3
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 3
env:
- name: WATCH_NAMESPACE
value: ""
- name: OPERATOR_NAME
value: "deployment-validation-operator"
- name: NAMESPACE_IGNORE_PATTERN
value: "openshift.*|kube-.+|open-cluster-management-.*|default|dedicated-admin"
- name: RESOURCES_PER_LIST_QUERY
value: "5"
- name: VALIDATION_CHECK_INTERVAL
value: "2m"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: dvo-config
mountPath: /config
securityContext:
readOnlyRootFilesystem: true
volumes:
- name: dvo-config
configMap:
optional: true
name: deployment-validation-operator-config
restartPolicy: Always
serviceAccountName: deployment-validation-operator
terminationGracePeriodSeconds: 30