1+ apiVersion : scheduling.k8s.io/v1
2+ kind : PriorityClass
3+ metadata :
4+ name : high-priority
5+ value : 1000000
6+ globalDefault : false
7+ description : ' This priority class should be used for XYZ service pods only.'
8+ ---
19apiVersion : apps/v1
210kind : DaemonSet
311metadata :
@@ -24,92 +32,93 @@ spec:
2432 app.kubernetes.io/instance : ingress-nginx
2533 app.kubernetes.io/name : ingress-nginx
2634 annotations :
27- prometheus.io/port : " 10254"
28- prometheus.io/scrape : " true"
29- cluster-autoscaler.kubernetes.io/safe-to-evict : " true"
35+ prometheus.io/port : ' 10254'
36+ prometheus.io/scrape : ' true'
37+ cluster-autoscaler.kubernetes.io/safe-to-evict : ' true'
3038 spec :
3139 terminationGracePeriodSeconds : 300
40+ priorityClassName : high-priority
3241 serviceAccountName : ingress-nginx
3342 nodeSelector :
3443 kubernetes.io/os : linux
3544 containers :
36- - name : controller
37- image : registry.k8s.io/ingress-nginx/controller:v1.4.0@sha256:34ee929b111ffc7aa426ffd409af44da48e5a0eea1eb2207994d9e0c0882d143
38- args :
39- - /nginx-ingress-controller
40- - --publish-service=$(POD_NAMESPACE)/ingress-nginx
41- - --election-id=ingress-controller-leader
42- - --controller-class=k8s.io/ingress-nginx
43- - --ingress-class=nginx
44- - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
45- - --validating-webhook=:8443
46- - --validating-webhook-certificate=/usr/local/certificates/cert
47- - --validating-webhook-key=/usr/local/certificates/key
48- env :
49- - name : POD_NAME
50- valueFrom :
51- fieldRef :
52- fieldPath : metadata.name
53- - name : POD_NAMESPACE
54- valueFrom :
55- fieldRef :
56- fieldPath : metadata.namespace
57- - name : LD_PRELOAD
58- value : /usr/local/lib/libmimalloc.so
59- imagePullPolicy : IfNotPresent
60- lifecycle :
61- preStop :
62- exec :
63- command :
64- - /wait-shutdown
65- livenessProbe :
66- failureThreshold : 5
67- httpGet :
68- path : /healthz
69- port : 10254
70- scheme : HTTP
71- initialDelaySeconds : 10
72- periodSeconds : 10
73- successThreshold : 1
74- timeoutSeconds : 1
75- ports :
76- - containerPort : 80
77- name : http
78- protocol : TCP
79- - containerPort : 443
80- name : https
81- protocol : TCP
82- - containerPort : 8443
83- name : webhook
84- protocol : TCP
85- readinessProbe :
86- failureThreshold : 3
87- httpGet :
88- path : /healthz
89- port : 10254
90- scheme : HTTP
91- initialDelaySeconds : 10
92- periodSeconds : 10
93- successThreshold : 1
94- timeoutSeconds : 1
95- resources :
96- requests :
97- cpu : 100m
98- memory : 90Mi
99- securityContext :
100- allowPrivilegeEscalation : true
101- capabilities :
102- add :
103- - NET_BIND_SERVICE
104- drop :
105- - ALL
106- runAsUser : 101
107- volumeMounts :
108- - mountPath : /usr/local/certificates/
109- name : webhook-cert
110- readOnly : true
45+ - name : controller
46+ image : registry.k8s.io/ingress-nginx/controller:v1.4.0@sha256:34ee929b111ffc7aa426ffd409af44da48e5a0eea1eb2207994d9e0c0882d143
47+ args :
48+ - /nginx-ingress-controller
49+ - --publish-service=$(POD_NAMESPACE)/ingress-nginx
50+ - --election-id=ingress-controller-leader
51+ - --controller-class=k8s.io/ingress-nginx
52+ - --ingress-class=nginx
53+ - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
54+ - --validating-webhook=:8443
55+ - --validating-webhook-certificate=/usr/local/certificates/cert
56+ - --validating-webhook-key=/usr/local/certificates/key
57+ env :
58+ - name : POD_NAME
59+ valueFrom :
60+ fieldRef :
61+ fieldPath : metadata.name
62+ - name : POD_NAMESPACE
63+ valueFrom :
64+ fieldRef :
65+ fieldPath : metadata.namespace
66+ - name : LD_PRELOAD
67+ value : /usr/local/lib/libmimalloc.so
68+ imagePullPolicy : IfNotPresent
69+ lifecycle :
70+ preStop :
71+ exec :
72+ command :
73+ - /wait-shutdown
74+ livenessProbe :
75+ failureThreshold : 5
76+ httpGet :
77+ path : /healthz
78+ port : 10254
79+ scheme : HTTP
80+ initialDelaySeconds : 10
81+ periodSeconds : 10
82+ successThreshold : 1
83+ timeoutSeconds : 1
84+ ports :
85+ - containerPort : 80
86+ name : http
87+ protocol : TCP
88+ - containerPort : 443
89+ name : https
90+ protocol : TCP
91+ - containerPort : 8443
92+ name : webhook
93+ protocol : TCP
94+ readinessProbe :
95+ failureThreshold : 3
96+ httpGet :
97+ path : /healthz
98+ port : 10254
99+ scheme : HTTP
100+ initialDelaySeconds : 10
101+ periodSeconds : 10
102+ successThreshold : 1
103+ timeoutSeconds : 1
104+ resources :
105+ requests :
106+ cpu : 500m
107+ memory : 500Mi
108+ securityContext :
109+ allowPrivilegeEscalation : true
110+ capabilities :
111+ add :
112+ - NET_BIND_SERVICE
113+ drop :
114+ - ALL
115+ runAsUser : 101
116+ volumeMounts :
117+ - mountPath : /usr/local/certificates/
118+ name : webhook-cert
119+ readOnly : true
111120 dnsPolicy : ClusterFirst
112121 volumes :
113- - name : webhook-cert
114- secret :
115- secretName : ingress-nginx-admission
122+ - name : webhook-cert
123+ secret :
124+ secretName : ingress-nginx-admission
0 commit comments