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.

46 lines
1.3 KiB

  1. ---
  2. apiVersion: apps/v1beta1
  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. {% if kube_version is version('v1.11.1', '>=') %}
  26. priorityClassName: {% if cert_manager_namespace == 'kube-system' %}system-cluster-critical{% else %}k8s-cluster-critical{% endif %}{{''}}
  27. {% endif %}
  28. serviceAccountName: cert-manager
  29. containers:
  30. - name: cert-manager
  31. image: {{ cert_manager_controller_image_repo }}:{{ cert_manager_controller_image_tag }}
  32. imagePullPolicy: {{ k8s_image_pull_policy }}
  33. args:
  34. - --cluster-resource-namespace=$(POD_NAMESPACE)
  35. - --leader-election-namespace=$(POD_NAMESPACE)
  36. env:
  37. - name: POD_NAMESPACE
  38. valueFrom:
  39. fieldRef:
  40. fieldPath: metadata.namespace
  41. resources:
  42. requests:
  43. cpu: 10m
  44. memory: 32Mi
  45. securityContext:
  46. runAsUser: {{ cert_manager_user }}