소스 검색

change the nginx-ingress deploy type to daemonset

dotbalo 6 년 전
부모
커밋
da37295ca0
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      nginx-ingress/deployment/mandatory.yaml

+ 5 - 0
nginx-ingress/deployment/mandatory.yaml

@@ -199,6 +199,10 @@ spec:
     matchLabels:
     matchLabels:
       app.kubernetes.io/name: ingress-nginx
       app.kubernetes.io/name: ingress-nginx
       app.kubernetes.io/part-of: ingress-nginx
       app.kubernetes.io/part-of: ingress-nginx
+  updateStrategy:
+    rollingUpdate:
+      maxUnavailable: 1
+    type: RollingUpdate
   template:
   template:
     metadata:
     metadata:
       labels:
       labels:
@@ -209,6 +213,7 @@ spec:
         prometheus.io/scrape: "true"
         prometheus.io/scrape: "true"
     spec:
     spec:
       serviceAccountName: nginx-ingress-serviceaccount
       serviceAccountName: nginx-ingress-serviceaccount
+      hostNetwork: true
       containers:
       containers:
         - name: nginx-ingress-controller
         - name: nginx-ingress-controller
           image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.22.0
           image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.22.0