This commit is contained in:
Julien Cabillot
2021-10-12 19:15:46 -04:00
parent 5ebf39e0ae
commit f68fd6f67b
6 changed files with 50 additions and 43 deletions
+7 -11
View File
@@ -1,9 +1,9 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "fullname" . }}
name: {{ include "gotify.fullname" . }}
labels:
{{- include "labels" . | nindent 4 }}
{{- include "gotify.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
@@ -11,7 +11,7 @@ spec:
# TODO: il manque strategy.type = RollingUpdate
selector:
matchLabels:
{{- include "selectorLabels" . | nindent 6 }}
{{- include "gotify.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
@@ -19,7 +19,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "selectorLabels" . | nindent 8 }}
{{- include "gotify.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
@@ -34,11 +34,11 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
envFrom:
- configMapRef:
name: {{ include "fullname" . }}
name: {{ include "gotify.fullname" . }}
- secretRef:
name: {{ include "fullname" . }}
name: {{ include "gotify.fullname" . }}
ports:
- name: http
containerPort: 80
@@ -51,10 +51,6 @@ spec:
httpGet:
path: /
port: http
# TODO: pas de volume mount ?
# TODO: ça sert à quoi encore ça ? :)
#resources:
# {{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}