update nginx ingress controller
This commit is contained in:
@@ -22,7 +22,7 @@ spec:
|
|||||||
serviceAccountName: kubesphere-router-serviceaccount
|
serviceAccountName: kubesphere-router-serviceaccount
|
||||||
containers:
|
containers:
|
||||||
- name: nginx-ingress-controller
|
- name: nginx-ingress-controller
|
||||||
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.16.2
|
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1
|
||||||
args:
|
args:
|
||||||
- /nginx-ingress-controller
|
- /nginx-ingress-controller
|
||||||
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend
|
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend
|
||||||
@@ -31,6 +31,15 @@ spec:
|
|||||||
- --force-namespace-isolation
|
- --force-namespace-isolation
|
||||||
- --update-status
|
- --update-status
|
||||||
- --update-status-on-shutdown
|
- --update-status-on-shutdown
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: true
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
add:
|
||||||
|
- NET_BIND_SERVICE
|
||||||
|
# www-data -> 33
|
||||||
|
runAsUser: 33
|
||||||
env:
|
env:
|
||||||
- name: POD_NAME
|
- name: POD_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@@ -54,7 +63,7 @@ spec:
|
|||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 10
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
httpGet:
|
httpGet:
|
||||||
@@ -63,7 +72,6 @@ spec:
|
|||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 10
|
||||||
securityContext:
|
|
||||||
runAsNonRoot: false
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user