62 lines
2.1 KiB
YAML
62 lines
2.1 KiB
YAML
---
|
|
# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: ingress-nginx-admission-patch
|
|
namespace: default
|
|
annotations:
|
|
"helm.sh/hook": post-install,post-upgrade
|
|
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
|
labels:
|
|
helm.sh/chart: ingress-nginx-4.10.0
|
|
app.kubernetes.io/name: ingress-nginx
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
app.kubernetes.io/version: "1.10.0"
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/component: admission-webhook
|
|
spec:
|
|
template:
|
|
metadata:
|
|
name: ingress-nginx-admission-patch
|
|
labels:
|
|
helm.sh/chart: ingress-nginx-4.10.0
|
|
app.kubernetes.io/name: ingress-nginx
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
app.kubernetes.io/version: "1.10.0"
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/component: admission-webhook
|
|
spec:
|
|
containers:
|
|
- name: patch
|
|
image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.4.0@sha256:44d1d0e9f19c63f58b380c5fddaca7cf22c7cee564adeff365225a5df5ef3334
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- patch
|
|
- --webhook-name=ingress-nginx-admission
|
|
- --namespace=$(POD_NAMESPACE)
|
|
- --patch-mutating=false
|
|
- --secret-name=ingress-nginx-admission
|
|
- --patch-failure-policy=Fail
|
|
env:
|
|
- name: POD_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
readOnlyRootFilesystem: true
|
|
runAsNonRoot: true
|
|
runAsUser: 65532
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
restartPolicy: OnFailure
|
|
serviceAccountName: ingress-nginx-admission
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|