fix: Add more bangs and whistles to puller
This commit is contained in:
parent
a2479976e6
commit
f25565dff5
@ -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
|
||||
|
@ -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:
|
||||
|
@ -5,6 +5,12 @@ image:
|
||||
pullPolicy: IfNotPresent
|
||||
tag: "latest"
|
||||
|
||||
puller:
|
||||
image:
|
||||
repository: nginx
|
||||
pullPolicy: IfNotPresent
|
||||
tag: "latest"
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
|
Loading…
Reference in New Issue
Block a user