generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathdeployment.yaml
81 lines (81 loc) · 2.58 KB
/
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
78
79
80
81
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
control-plane: controller-manager
{{- include "node-feature-discovery-operator.labels" . | nindent 4 }}
name: {{ include "node-feature-discovery-operator.fullname" . }}-controller-manager
namespace: {{ include "node-feature-discovery-operator.namespace" . }}
spec:
replicas: 1
selector:
matchLabels:
control-plane: controller-manager
{{- include "node-feature-discovery-operator.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "node-feature-discovery-operator.selectorLabels" . | nindent 8 }}
control-plane: controller-manager
spec:
containers:
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
- --logtostderr=true
- --v=10
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
name: kube-rbac-proxy
ports:
- containerPort: 8443
name: https
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
- args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:8080
- --leader-elect
command:
- /node-feature-discovery-operator
env:
- name: WATCH_NAMESPACE
value: {{ include "node-feature-discovery-operator.namespace" . }}
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: node-feature-discovery-operator
- name: NODE_FEATURE_DISCOVERY_IMAGE
value: "{{ .Values.nfd.image.repository }}:{{ .Values.nfd.image.tag | default "master-minimal" }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
name: manager
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsUser: 65534
seccompProfile:
type: RuntimeDefault
terminationGracePeriodSeconds: 10