|
| 1 | +apiVersion: apps/v1 |
| 2 | +kind: Deployment |
| 3 | +metadata: |
| 4 | + name: {{ include "external-dns.fullname" . }} |
| 5 | + labels: |
| 6 | + {{- include "external-dns.labels" . | nindent 4 }} |
| 7 | +spec: |
| 8 | + replicas: 1 |
| 9 | + selector: |
| 10 | + matchLabels: |
| 11 | + {{- include "external-dns.selectorLabels" . | nindent 6 }} |
| 12 | + template: |
| 13 | + metadata: |
| 14 | + labels: |
| 15 | + {{- include "external-dns.selectorLabels" . | nindent 8 }} |
| 16 | + {{- with .Values.podLabels }} |
| 17 | + {{- toYaml . | nindent 8 }} |
| 18 | + {{- end }} |
| 19 | + {{- with .Values.podAnnotations }} |
| 20 | + annotations: |
| 21 | + {{- toYaml . | nindent 8 }} |
| 22 | + {{- end }} |
| 23 | + spec: |
| 24 | + {{- with .Values.imagePullSecrets }} |
| 25 | + imagePullSecrets: |
| 26 | + {{- toYaml . | nindent 8 }} |
| 27 | + {{- end }} |
| 28 | + serviceAccountName: {{ include "external-dns.serviceAccountName" . }} |
| 29 | + {{- with .Values.podSecurityContext }} |
| 30 | + securityContext: |
| 31 | + {{- toYaml . | nindent 8 }} |
| 32 | + {{- end }} |
| 33 | + {{- with .Values.priorityClassName }} |
| 34 | + priorityClassName: {{ . | quote }} |
| 35 | + {{- end }} |
| 36 | + {{- with .Values.terminationGracePeriodSeconds }} |
| 37 | + terminationGracePeriodSeconds: {{ . }} |
| 38 | + {{- end }} |
| 39 | + containers: |
| 40 | + - name: external-dns |
| 41 | + {{- with .Values.securityContext }} |
| 42 | + securityContext: |
| 43 | + {{- toYaml . | nindent 12 }} |
| 44 | + {{- end }} |
| 45 | + image: {{ include "external-dns.image" . }} |
| 46 | + imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 47 | + {{- with .Values.env }} |
| 48 | + env: |
| 49 | + {{- toYaml . | nindent 12 }} |
| 50 | + {{- end }} |
| 51 | + args: |
| 52 | + - --log-level={{ .Values.logLevel }} |
| 53 | + - --log-format={{ .Values.logFormat }} |
| 54 | + - --interval={{ .Values.interval }} |
| 55 | + {{- if .Values.triggerLoopOnEvent }} |
| 56 | + - --events |
| 57 | + {{- end }} |
| 58 | + {{- range .Values.sources }} |
| 59 | + - --source={{ . }} |
| 60 | + {{- end }} |
| 61 | + - --policy={{ .Values.policy }} |
| 62 | + {{- if eq .Values.registry "txt" }} |
| 63 | + {{- if .Values.txtOwnerId }} |
| 64 | + - --txt-owner-id={{ .Values.txtOwnerId }} |
| 65 | + {{- end }} |
| 66 | + {{- if .Values.txtPrefix }} |
| 67 | + - --txt-prefix={{ .Values.txtPrefix }} |
| 68 | + {{- end }} |
| 69 | + {{- end }} |
| 70 | + {{- range .Values.domainFilters }} |
| 71 | + - --domain-filter={{ . }} |
| 72 | + {{- end }} |
| 73 | + - --provider={{ .Values.provider }} |
| 74 | + {{- range .Values.extraArgs }} |
| 75 | + - {{ . }} |
| 76 | + {{- end }} |
| 77 | + ports: |
| 78 | + - name: http |
| 79 | + protocol: TCP |
| 80 | + containerPort: 7979 |
| 81 | + livenessProbe: |
| 82 | + {{- toYaml .Values.livenessProbe | nindent 12 }} |
| 83 | + readinessProbe: |
| 84 | + {{- toYaml .Values.readinessProbe | nindent 12 }} |
| 85 | + {{- with .Values.extraVolumeMounts }} |
| 86 | + volumeMounts: |
| 87 | + {{- toYaml . | nindent 12 }} |
| 88 | + {{- end }} |
| 89 | + {{- with .Values.resources }} |
| 90 | + resources: |
| 91 | + {{- toYaml . | nindent 12 }} |
| 92 | + {{- end }} |
| 93 | + {{- with .Values.extraVolumes }} |
| 94 | + volumes: |
| 95 | + {{- toYaml . | nindent 8 }} |
| 96 | + {{- end }} |
| 97 | + {{- with .Values.nodeSelector }} |
| 98 | + nodeSelector: |
| 99 | + {{- toYaml . | nindent 8 }} |
| 100 | + {{- end }} |
| 101 | + {{- with .Values.affinity }} |
| 102 | + affinity: |
| 103 | + {{- toYaml . | nindent 8 }} |
| 104 | + {{- end }} |
| 105 | + {{- with .Values.tolerations }} |
| 106 | + tolerations: |
| 107 | + {{- toYaml . | nindent 8 }} |
| 108 | + {{- end }} |
0 commit comments