2022-05-11 01:10:44 +00:00
|
|
|
---
|
|
|
|
# Source: ingress-nginx/templates/controller-deployment.yaml
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
2024-04-17 22:58:58 +00:00
|
|
|
helm.sh/chart: ingress-nginx-4.10.0
|
2022-05-11 01:10:44 +00:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
2024-04-17 22:58:58 +00:00
|
|
|
app.kubernetes.io/version: "1.10.0"
|
2022-05-11 01:10:44 +00:00
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
name: ingress-nginx-controller
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 10
|
|
|
|
minReadySeconds: 0
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2024-04-17 22:58:58 +00:00
|
|
|
helm.sh/chart: ingress-nginx-4.10.0
|
2022-05-11 01:10:44 +00:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
2024-04-17 22:58:58 +00:00
|
|
|
app.kubernetes.io/version: "1.10.0"
|
2023-07-16 06:40:38 +00:00
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
2022-05-11 01:10:44 +00:00
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
spec:
|
|
|
|
dnsPolicy: ClusterFirst
|
|
|
|
containers:
|
|
|
|
- name: controller
|
2024-04-17 22:58:58 +00:00
|
|
|
image: registry.k8s.io/ingress-nginx/controller:v1.10.0@sha256:42b3f0e5d0846876b1791cd3afeb5f1cbbe4259d6f35651dcc1b5c980925379c
|
2022-05-11 01:10:44 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
lifecycle:
|
|
|
|
preStop:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /wait-shutdown
|
2024-04-17 22:58:58 +00:00
|
|
|
args:
|
2022-05-11 01:10:44 +00:00
|
|
|
- /nginx-ingress-controller
|
|
|
|
- --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
|
2022-12-20 08:01:25 +00:00
|
|
|
- --election-id=ingress-nginx-leader
|
2022-05-11 01:10:44 +00:00
|
|
|
- --controller-class=k8s.io/ingress-nginx
|
|
|
|
- --ingress-class=nginx
|
|
|
|
- --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
|
|
|
|
- --validating-webhook=:8443
|
|
|
|
- --validating-webhook-certificate=/usr/local/certificates/cert
|
|
|
|
- --validating-webhook-key=/usr/local/certificates/key
|
|
|
|
securityContext:
|
2024-04-17 22:58:58 +00:00
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 101
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
seccompProfile:
|
|
|
|
type: RuntimeDefault
|
2022-05-11 01:10:44 +00:00
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
- ALL
|
|
|
|
add:
|
|
|
|
- NET_BIND_SERVICE
|
2024-04-17 22:58:58 +00:00
|
|
|
readOnlyRootFilesystem: false
|
2022-05-11 01:10:44 +00:00
|
|
|
env:
|
|
|
|
- name: POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
- name: LD_PRELOAD
|
|
|
|
value: /usr/local/lib/libmimalloc.so
|
|
|
|
livenessProbe:
|
|
|
|
failureThreshold: 5
|
|
|
|
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
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
periodSeconds: 10
|
|
|
|
successThreshold: 1
|
|
|
|
timeoutSeconds: 1
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
containerPort: 80
|
|
|
|
protocol: TCP
|
|
|
|
- name: https
|
|
|
|
containerPort: 443
|
|
|
|
protocol: TCP
|
|
|
|
- name: metrics
|
|
|
|
containerPort: 10254
|
|
|
|
protocol: TCP
|
|
|
|
- name: webhook
|
|
|
|
containerPort: 8443
|
|
|
|
protocol: TCP
|
|
|
|
volumeMounts:
|
|
|
|
- name: webhook-cert
|
|
|
|
mountPath: /usr/local/certificates/
|
|
|
|
readOnly: true
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 90Mi
|
|
|
|
nodeSelector:
|
|
|
|
kubernetes.io/os: linux
|
|
|
|
serviceAccountName: ingress-nginx
|
|
|
|
terminationGracePeriodSeconds: 300
|
|
|
|
volumes:
|
|
|
|
- name: webhook-cert
|
|
|
|
secret:
|
|
|
|
secretName: ingress-nginx-admission
|