2018-03-28 22:30:00 +08:00
|
|
|
---
|
2019-09-11 03:06:55 +08:00
|
|
|
apiVersion: apps/v1
|
2018-03-28 22:30:00 +08:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: cert-manager
|
|
|
|
namespace: {{ cert_manager_namespace }}
|
|
|
|
labels:
|
|
|
|
app: cert-manager
|
2018-11-20 21:13:01 +08:00
|
|
|
chart: cert-manager-v0.5.2
|
2018-03-28 22:30:00 +08:00
|
|
|
release: cert-manager
|
|
|
|
heritage: Tiller
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
2018-06-07 20:16:20 +08:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
2018-08-15 11:33:08 +08:00
|
|
|
app: cert-manager
|
2018-06-07 20:16:20 +08:00
|
|
|
release: cert-manager
|
2018-03-28 22:30:00 +08:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2018-08-15 11:33:08 +08:00
|
|
|
app: cert-manager
|
2018-03-28 22:30:00 +08:00
|
|
|
release: cert-manager
|
|
|
|
annotations:
|
|
|
|
spec:
|
2018-09-25 22:50:22 +08:00
|
|
|
priorityClassName: {% if cert_manager_namespace == 'kube-system' %}system-cluster-critical{% else %}k8s-cluster-critical{% endif %}{{''}}
|
2018-03-28 22:30:00 +08:00
|
|
|
serviceAccountName: cert-manager
|
|
|
|
containers:
|
|
|
|
- name: cert-manager
|
|
|
|
image: {{ cert_manager_controller_image_repo }}:{{ cert_manager_controller_image_tag }}
|
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
|
|
|
args:
|
|
|
|
- --cluster-resource-namespace=$(POD_NAMESPACE)
|
2018-06-07 20:16:20 +08:00
|
|
|
- --leader-election-namespace=$(POD_NAMESPACE)
|
2018-03-28 22:30:00 +08:00
|
|
|
env:
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
resources:
|
|
|
|
requests:
|
2018-08-15 11:33:08 +08:00
|
|
|
cpu: 10m
|
|
|
|
memory: 32Mi
|
2018-08-23 00:16:13 +08:00
|
|
|
securityContext:
|
|
|
|
runAsUser: {{ cert_manager_user }}
|