|
| 1 | +apiVersion: apps/v1beta2 |
| 2 | +kind: Deployment |
| 3 | +metadata: |
| 4 | + name: {{ template "katafygio.fullname" . }} |
| 5 | + labels: |
| 6 | + app: {{ template "katafygio.name" . }} |
| 7 | + chart: {{ .Chart.Name }}-{{ .Chart.Version }} |
| 8 | + release: {{ .Release.Name }} |
| 9 | + heritage: {{ .Release.Service }} |
| 10 | +spec: |
| 11 | + replicas: {{ .Values.replicaCount }} |
| 12 | + selector: |
| 13 | + matchLabels: |
| 14 | + app: {{ template "katafygio.name" . }} |
| 15 | + release: {{ .Release.Name }} |
| 16 | + template: |
| 17 | + metadata: |
| 18 | + labels: |
| 19 | + app: {{ template "katafygio.name" . }} |
| 20 | + release: {{ .Release.Name }} |
| 21 | + spec: |
| 22 | + serviceAccountName: {{ template "katafygio.serviceAccountName" . }} |
| 23 | + containers: |
| 24 | + - name: {{ .Chart.Name }} |
| 25 | + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" |
| 26 | + imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 27 | + command: |
| 28 | + - /usr/bin/katafygio |
| 29 | + - --local-dir={{ default "/tmp/kf-dump" .Values.localDir }} |
| 30 | + - --healthcheck-port={{ default 8080 .Values.healthcheckPort }} |
| 31 | + {{- if .Values.gitUrl }} |
| 32 | + - --git-url={{ .Values.gitUrl }} |
| 33 | + {{- end }} |
| 34 | + {{- if .Values.filter }} |
| 35 | + - --filter={{ .Values.filter }} |
| 36 | + {{- end }} |
| 37 | + {{- if .Values.logLevel }} |
| 38 | + - --log-level={{ .Values.logLevel }} |
| 39 | + {{- end }} |
| 40 | + {{- if .Values.logOutput }} |
| 41 | + - --log-output={{ .Values.logOutput }} |
| 42 | + {{- end }} |
| 43 | + {{- if .Values.logServer }} |
| 44 | + - --log-server={{ .Values.logServer }} |
| 45 | + {{- end }} |
| 46 | + {{- if .Values.resyncInterval }} |
| 47 | + - --resync-interval={{ .Values.resyncInterval }} |
| 48 | + {{- end }} |
| 49 | + {{- if .Values.noGit }} |
| 50 | + - --no-git |
| 51 | + {{- end }} |
| 52 | + {{- if .Values.excludeKind }} |
| 53 | + {{- range .Values.excludeKind }} |
| 54 | + - --exclude-kind={{ . }} |
| 55 | + {{- end }} |
| 56 | + {{- end }} |
| 57 | + {{- if .Values.excludeObject }} |
| 58 | + {{- range .Values.excludeObject }} |
| 59 | + - --exclude-object={{ . }} |
| 60 | + {{- end }} |
| 61 | + {{- end }} |
| 62 | + ports: |
| 63 | + - name: http |
| 64 | + containerPort: {{ default 8080 .Values.healthcheckPort }} |
| 65 | + protocol: TCP |
| 66 | + livenessProbe: |
| 67 | + httpGet: |
| 68 | + path: /health |
| 69 | + port: http |
| 70 | + readinessProbe: |
| 71 | + httpGet: |
| 72 | + path: /health |
| 73 | + port: http |
| 74 | + resources: |
| 75 | +{{ toYaml .Values.resources | indent 12 }} |
| 76 | + {{- with .Values.nodeSelector }} |
| 77 | + nodeSelector: |
| 78 | +{{ toYaml . | indent 8 }} |
| 79 | + {{- end }} |
| 80 | + {{- with .Values.affinity }} |
| 81 | + affinity: |
| 82 | +{{ toYaml . | indent 8 }} |
| 83 | + {{- end }} |
| 84 | + {{- with .Values.tolerations }} |
| 85 | + tolerations: |
| 86 | +{{ toYaml . | indent 8 }} |
| 87 | + {{- end }} |
0 commit comments