Override appVersion #2;Add Configmap backed volume
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-10 12:55:52 +02:00
parent cdcd310ff9
commit 5aa9a52ed8
4 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-configmap
data:
db.json: |
{
"metacluster": {
"version": "3.2.0",
"title": "json-server",
"author": "typicode"
},
"foo": { "bar": "woot" }
}

View File

@ -45,6 +45,13 @@ spec:
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- mountPath: /data/db.json
name: {{ .Release.Name }}-configmap
volumes:
- name: {{ .Release.Name }}-configmap
configMap:
name: {{ .Release.Name }}-configmap
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}