fix: Add more bangs and whistles to puller

This commit is contained in:
Guilhem Lavaux 2024-11-18 10:15:00 +01:00
parent a2479976e6
commit f25565dff5
3 changed files with 37 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# Chart.yaml
apiVersion: v2
name: basic-app
PullName: basic-app-puller
description: A basic Helm chart for Kubernetes
type: application
version: 0.1.0

View File

@ -55,13 +55,42 @@ spec:
{{- end }}
- name: {{ .Chart.PullName }}
image: "{{ .Values.puller.image.repository }}:{{ .Values.puller.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
imagePullPolicy: {{ .Values.puller.image.pullPolicy }}
ports:
- containerPort: 80
protocol: TCP
volumeMounts:
- name: data
mountPath: /data
env:
{{- with .Values.env.plain }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- range .Values.env.configMapKeys }}
- name: {{ .name }}
valueFrom:
configMapKeyRef:
name: {{ .configMapName }}
key: {{ .key }}
{{- end }}
{{- range .Values.env.secretKeys }}
- name: {{ .name }}
valueFrom:
secretKeyRef:
name: {{ .secretName }}
key: {{ .key }}
{{- end }}
envFrom:
{{- range .Values.env.configMapRefs }}
- configMapRef:
name: {{ .name }}
optional: {{ .optional | default false }}
{{- end }}
{{- range .Values.env.secretRefs }}
- secretRef:
name: {{ .name }}
optional: {{ .optional | default false }}
{{- end }}
volumes:
- name: data
persistentVolumeClaim:

View File

@ -5,6 +5,12 @@ image:
pullPolicy: IfNotPresent
tag: "latest"
puller:
image:
repository: nginx
pullPolicy: IfNotPresent
tag: "latest"
service:
type: ClusterIP
port: 80