@@ -14,24 +14,24 @@ metadata:
1414 name : azure-npm
1515 namespace : kube-system
1616rules :
17- - apiGroups :
18- - " "
19- resources :
20- - pods
21- - nodes
22- - namespaces
23- verbs :
24- - get
25- - list
26- - watch
27- - apiGroups :
28- - networking.k8s.io
29- resources :
30- - networkpolicies
31- verbs :
32- - get
33- - list
34- - watch
17+ - apiGroups :
18+ - " "
19+ resources :
20+ - pods
21+ - nodes
22+ - namespaces
23+ verbs :
24+ - get
25+ - list
26+ - watch
27+ - apiGroups :
28+ - networking.k8s.io
29+ resources :
30+ - networkpolicies
31+ verbs :
32+ - get
33+ - list
34+ - watch
3535---
3636apiVersion : rbac.authorization.k8s.io/v1
3737kind : ClusterRoleBinding
@@ -45,9 +45,9 @@ roleRef:
4545 kind : ClusterRole
4646 name : azure-npm
4747subjects :
48- - kind : ServiceAccount
49- name : azure-npm
50- namespace : kube-system
48+ - kind : ServiceAccount
49+ name : azure-npm
50+ namespace : kube-system
5151---
5252apiVersion : v1
5353data :
@@ -80,15 +80,15 @@ metadata:
8080 labels :
8181 app : azure-npm
8282 component : daemon
83- name : npm-deamon -metrics-cluster-service
83+ name : npm-daemon -metrics-cluster-service
8484 namespace : kube-system
8585spec :
8686 ports :
87- - name : metrics
88- port : 9000
89- targetPort : 10091
87+ - name : metrics
88+ port : 9000
89+ targetPort : 10091
9090 selector :
91- component : deamon
91+ component : daemon
9292 k8s-app : azure-npm
9393---
9494apiVersion : apps/v1
@@ -98,7 +98,7 @@ metadata:
9898 addonmanager.kubernetes.io/mode : EnsureExists
9999 app : azure-npm
100100 component : daemon
101- name : azure-npm-deamon
101+ name : azure-npm-daemon
102102 namespace : kube-system
103103spec :
104104 selector :
@@ -115,72 +115,73 @@ spec:
115115 k8s-app : azure-npm
116116 spec :
117117 containers :
118- - args :
119- - start
120- - daemon
121- command :
122- - azure-npm
123- env :
124- - name : HOSTNAME
125- valueFrom :
126- fieldRef :
127- apiVersion : v1
128- fieldPath : spec.nodeName
129- - name : NPM_CONFIG
130- value : /etc/azure-npm/azure-npm.json
131- - name : DAEMON_POD_NAME
132- valueFrom :
133- fieldRef :
134- fieldPath : metadata.name
135- - name : DAEMON_NODE_NAME
136- valueFrom :
137- fieldRef :
138- fieldPath : spec.nodeName
139- image : azure-npm:v1.4.1
140- name : azure-npm
141- ports :
142- - name : metrics
143- containerPort : 10091
144- resources :
145- limits :
146- cpu : 250m
147- memory : 300Mi
148- requests :
149- cpu : 250m
150- securityContext :
151- privileged : true
152- volumeMounts :
153- - mountPath : /var/log
154- name : log
155- - mountPath : /run/xtables.lock
156- name : xtables-lock
157- - mountPath : /etc/protocols
158- name : protocols
159- - mountPath : /etc/azure-npm
160- name : azure-npm-config
118+ - args :
119+ - start
120+ - daemon
121+ command :
122+ - azure-npm
123+ env :
124+ - name : HOSTNAME
125+ valueFrom :
126+ fieldRef :
127+ apiVersion : v1
128+ fieldPath : spec.nodeName
129+ - name : NPM_CONFIG
130+ value : /etc/azure-npm/azure-npm.json
131+ - name : DAEMON_POD_NAME
132+ valueFrom :
133+ fieldRef :
134+ fieldPath : metadata.name
135+ - name : DAEMON_NODE_NAME
136+ valueFrom :
137+ fieldRef :
138+ fieldPath : spec.nodeName
139+ image : azure-npm:v1.4.1
140+ name : azure-npm
141+ ports :
142+ - name : metrics
143+ containerPort : 10091
144+ resources :
145+ limits :
146+ cpu : 250m
147+ memory : 300Mi
148+ requests :
149+ cpu : 250m
150+ securityContext :
151+ privileged : true
152+ volumeMounts :
153+ - mountPath : /var/log
154+ name : log
155+ - mountPath : /run/xtables.lock
156+ name : xtables-lock
157+ - mountPath : /etc/protocols
158+ name : protocols
159+ - mountPath : /etc/azure-npm
160+ name : azure-npm-config
161161 hostNetwork : true
162+ dnsPolicy : ClusterFirstWithHostNet
162163 priorityClassName : system-node-critical
163164 serviceAccountName : azure-npm
164165 tolerations :
165- - effect : NoExecute
166- operator : Exists
167- - effect : NoSchedule
168- operator : Exists
169- - key : CriticalAddonsOnly
170- operator : Exists
166+ - effect : NoExecute
167+ operator : Exists
168+ - effect : NoSchedule
169+ operator : Exists
170+ - key : CriticalAddonsOnly
171+ operator : Exists
171172 volumes :
172- - hostPath :
173- path : /var/log
174- type : Directory
175- name : log
176- - hostPath :
177- path : /run/xtables.lock
178- type : File
179- name : xtables-lock
180- - hostPath :
181- path : /etc/protocols
182- type : File
183- name : protocols
184- - configMap :
173+ - hostPath :
174+ path : /var/log
175+ type : Directory
176+ name : log
177+ - hostPath :
178+ path : /run/xtables.lock
179+ type : File
180+ name : xtables-lock
181+ - hostPath :
182+ path : /etc/protocols
183+ type : File
184+ name : protocols
185+ - configMap :
186+ name : azure-npm-config
185187 name : azure-npm-config
186- name : azure-npm-config
0 commit comments