transfer.sh/charts/transfersh/templates/deployment.yaml

59 lines
2 KiB
YAML
Raw Normal View History

2019-08-17 10:48:22 +02:00
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: {{ include "transfersh.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "transfersh.name" . }}
helm.sh/chart: {{ include "transfersh.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "transfersh.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "transfersh.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
2019-08-18 12:13:30 +02:00
{{- $keyRefSource := .Values.argValues.source.type -}}
2019-08-18 21:16:50 +02:00
{{ $keyRefName := .Values.argValues.source.name }}
2019-08-17 10:48:22 +02:00
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
2019-08-18 21:16:50 +02:00
{{- range .Values.argValues.paramNames }}
- name: {{ . | upper | replace "-" "_" }}
valueFrom:
2019-08-18 12:13:30 +02:00
{{ $keyRefSource }}:
name: {{ $keyRefName }}
key: {{ . | upper | replace "-" "_"}}
2019-08-18 12:13:30 +02:00
{{- end }}
args: [ {{- range .Values.argValues.paramNames }} {{ printf "%s%s" $.Values.argIdentifier . | quote}},{{ printf "%s%s%s" "$(" . ")" | upper | replace "-" "_" | quote}},{{- end }} ]
2019-08-17 10:48:22 +02:00
livenessProbe:
httpGet:
path: /
port: {{ .Values.service.internalPort }}
readinessProbe:
httpGet:
path: /
port: {{ .Values.service.internalPort }}
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}