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:
parent
cdcd310ff9
commit
5aa9a52ed8
@ -15,10 +15,10 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.1.1
|
||||
version: v0.2.0
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||
# It is recommended to use it with quotes.
|
||||
appVersion: "latest"
|
||||
appVersion: "v0.2.0"
|
||||
|
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 }}
|
||||
|
@ -6,6 +6,7 @@ replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: bv11-cr01.bessems.eu/library/json-server
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: ""
|
||||
|
Loading…
Reference in New Issue
Block a user