2018-03-04 17:01:38 +00:00
|
|
|
---
|
2019-11-02 14:32:58 +00:00
|
|
|
apiVersion: apps/v1
|
2018-03-04 17:01:38 +00:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2019-03-03 22:51:52 +00:00
|
|
|
name: nginx-ingress-controller
|
2018-03-04 17:01:38 +00:00
|
|
|
namespace: authelia
|
|
|
|
labels:
|
2019-11-02 14:32:58 +00:00
|
|
|
app: nginx-ingress-controller
|
2018-03-04 17:01:38 +00:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 0
|
2019-11-02 14:32:58 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: nginx-ingress-controller
|
2018-03-04 17:01:38 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2019-11-02 14:32:58 +00:00
|
|
|
app: nginx-ingress-controller
|
2018-03-04 17:01:38 +00:00
|
|
|
annotations:
|
|
|
|
prometheus.io/port: '10254'
|
|
|
|
prometheus.io/scrape: 'true'
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 60
|
2019-03-03 22:51:52 +00:00
|
|
|
serviceAccountName: nginx-ingress-controller-serviceaccount
|
2018-03-04 17:01:38 +00:00
|
|
|
containers:
|
2021-04-10 20:51:00 +00:00
|
|
|
- image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.23.0
|
|
|
|
name: nginx-ingress-controller
|
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
- containerPort: 443
|
|
|
|
env:
|
|
|
|
- name: POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
args:
|
|
|
|
- /nginx-ingress-controller
|
|
|
|
- --ingress-class=nginx
|
|
|
|
- --election-id=ingress-controller-leader
|
|
|
|
...
|