2018-03-05 00:01:38 +07:00
|
|
|
---
|
2019-11-02 21:32:58 +07:00
|
|
|
apiVersion: apps/v1
|
2018-03-05 00:01:38 +07:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2019-03-04 05:51:52 +07:00
|
|
|
name: nginx-ingress-controller
|
2018-03-05 00:01:38 +07:00
|
|
|
namespace: authelia
|
|
|
|
labels:
|
2019-11-02 21:32:58 +07:00
|
|
|
app: nginx-ingress-controller
|
2018-03-05 00:01:38 +07:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 0
|
2019-11-02 21:32:58 +07:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: nginx-ingress-controller
|
2018-03-05 00:01:38 +07:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2019-11-02 21:32:58 +07:00
|
|
|
app: nginx-ingress-controller
|
2018-03-05 00:01:38 +07:00
|
|
|
annotations:
|
|
|
|
prometheus.io/port: '10254'
|
|
|
|
prometheus.io/scrape: 'true'
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 60
|
2019-03-04 05:51:52 +07:00
|
|
|
serviceAccountName: nginx-ingress-controller-serviceaccount
|
2018-03-05 00:01:38 +07:00
|
|
|
containers:
|
2021-04-11 03:51:00 +07: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
|
|
|
|
...
|