You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.3 KiB

  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: cert-manager
  6. namespace: {{ cert_manager_namespace }}
  7. labels:
  8. app: cert-manager
  9. chart: cert-manager-v0.5.2
  10. release: cert-manager
  11. heritage: Tiller
  12. spec:
  13. replicas: 1
  14. selector:
  15. matchLabels:
  16. app: cert-manager
  17. release: cert-manager
  18. template:
  19. metadata:
  20. labels:
  21. app: cert-manager
  22. release: cert-manager
  23. annotations:
  24. spec:
  25. priorityClassName: {% if cert_manager_namespace == 'kube-system' %}system-cluster-critical{% else %}k8s-cluster-critical{% endif %}{{''}}
  26. serviceAccountName: cert-manager
  27. containers:
  28. - name: cert-manager
  29. image: {{ cert_manager_controller_image_repo }}:{{ cert_manager_controller_image_tag }}
  30. imagePullPolicy: {{ k8s_image_pull_policy }}
  31. args:
  32. - --cluster-resource-namespace=$(POD_NAMESPACE)
  33. - --leader-election-namespace=$(POD_NAMESPACE)
  34. env:
  35. - name: POD_NAMESPACE
  36. valueFrom:
  37. fieldRef:
  38. fieldPath: metadata.namespace
  39. resources:
  40. requests:
  41. cpu: 10m
  42. memory: 32Mi
  43. securityContext:
  44. runAsUser: {{ cert_manager_user }}