
Version 0.14.1 has been used as a basis for this function Change-Id: If7b48d021f7b5dbb680000a0500d7c23a23263de
67 lines
1.8 KiB
YAML
67 lines
1.8 KiB
YAML
---
|
|
# Source: cert-manager/templates/webhook-deployment.yaml
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: cert-manager-webhook
|
|
namespace: "cert-manager"
|
|
labels:
|
|
app: webhook
|
|
app.kubernetes.io/name: webhook
|
|
app.kubernetes.io/instance: cert-manager
|
|
app.kubernetes.io/component: "webhook"
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: webhook
|
|
app.kubernetes.io/instance: cert-manager
|
|
app.kubernetes.io/component: "webhook"
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: webhook
|
|
app.kubernetes.io/name: webhook
|
|
app.kubernetes.io/instance: cert-manager
|
|
app.kubernetes.io/component: "webhook"
|
|
annotations:
|
|
spec:
|
|
serviceAccountName: cert-manager-webhook
|
|
containers:
|
|
- name: cert-manager
|
|
image: "quay.io/jetstack/cert-manager-webhook:v0.14.1"
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- --v=2
|
|
- --secure-port=10250
|
|
- --tls-cert-file=/certs/tls.crt
|
|
- --tls-private-key-file=/certs/tls.key
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /livez
|
|
port: 6080
|
|
scheme: HTTP
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 6080
|
|
scheme: HTTP
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
env:
|
|
- name: POD_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
resources:
|
|
{}
|
|
volumeMounts:
|
|
- name: certs
|
|
mountPath: /certs
|
|
volumes:
|
|
- name: certs
|
|
secret:
|
|
secretName: cert-manager-webhook-tls
|