1
0
Fork 0

feat: add helm chart

This commit is contained in:
Vojtěch Mareš 2023-07-03 17:59:20 +02:00
parent 7d3852150b
commit d454ec8fc9
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
12 changed files with 231 additions and 0 deletions

View file

@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}
labels:
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ .Chart.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: Always
ports:
- name: {{ .Values.service.portName }}
containerPort: {{ .Values.service.portNumber }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: {{ .Values.service.portName }}
readinessProbe:
httpGet:
path: /
port: {{ .Values.service.portName }}
envFrom:
- configMapRef:
name: {{ .Release.Name }}-config
- secretRef:
name: {{ .Release.Name }}-database
- secretRef:
name: {{ .Release.Name }}-nextauth
resources:
{{- toYaml .Values.resources | nindent 12 }}