Override appVersion #2;Add Configmap backed volume
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
14
charts/json-server/templates/configmap.yaml
Normal file
14
charts/json-server/templates/configmap.yaml
Normal 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" }
|
||||
}
|
@ -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 }}
|
||||
|
Reference in New Issue
Block a user