2019-01-09 21:40:24 +00:00
|
|
|
apiVersion: apps/v1
|
2017-10-13 13:55:03 +00:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: nginx-ingress-controller
|
2018-08-22 13:37:22 +00:00
|
|
|
namespace: ingress-nginx
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-10-13 13:55:03 +00:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2018-08-22 13:37:22 +00:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-10-13 13:55:03 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2018-08-22 13:37:22 +00:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-10-16 12:55:46 +00:00
|
|
|
annotations:
|
2018-09-26 13:15:57 +00:00
|
|
|
prometheus.io/port: "10254"
|
|
|
|
prometheus.io/scrape: "true"
|
2017-10-13 13:55:03 +00:00
|
|
|
spec:
|
|
|
|
serviceAccountName: nginx-ingress-serviceaccount
|
|
|
|
containers:
|
|
|
|
- name: nginx-ingress-controller
|
2019-01-14 16:12:40 +00:00
|
|
|
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.22.0
|
2017-10-13 13:55:03 +00:00
|
|
|
args:
|
|
|
|
- /nginx-ingress-controller
|
|
|
|
- --configmap=$(POD_NAMESPACE)/nginx-configuration
|
2018-11-16 16:48:47 +00:00
|
|
|
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
|
|
|
|
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
|
2018-05-17 21:50:21 +00:00
|
|
|
- --publish-service=$(POD_NAMESPACE)/ingress-nginx
|
2017-11-24 18:46:51 +00:00
|
|
|
- --annotations-prefix=nginx.ingress.kubernetes.io
|
2018-06-23 12:41:57 +00:00
|
|
|
securityContext:
|
2019-01-07 16:22:42 +00:00
|
|
|
allowPrivilegeEscalation: true
|
2018-06-23 12:41:57 +00:00
|
|
|
capabilities:
|
2018-09-26 13:15:57 +00:00
|
|
|
drop:
|
2018-06-23 12:41:57 +00:00
|
|
|
- ALL
|
2018-09-26 13:15:57 +00:00
|
|
|
add:
|
2018-06-23 12:41:57 +00:00
|
|
|
- NET_BIND_SERVICE
|
|
|
|
# www-data -> 33
|
|
|
|
runAsUser: 33
|
2017-10-13 13:55:03 +00:00
|
|
|
env:
|
|
|
|
- name: POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
ports:
|
2018-09-26 13:15:57 +00:00
|
|
|
- name: http
|
|
|
|
containerPort: 80
|
|
|
|
- name: https
|
|
|
|
containerPort: 443
|
2017-10-25 04:06:11 +00:00
|
|
|
livenessProbe:
|
|
|
|
failureThreshold: 3
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 10254
|
|
|
|
scheme: HTTP
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
periodSeconds: 10
|
|
|
|
successThreshold: 1
|
|
|
|
timeoutSeconds: 1
|
|
|
|
readinessProbe:
|
|
|
|
failureThreshold: 3
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 10254
|
|
|
|
scheme: HTTP
|
|
|
|
periodSeconds: 10
|
|
|
|
successThreshold: 1
|
|
|
|
timeoutSeconds: 1
|
2018-09-26 13:15:57 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|