diff --git a/charts/json-server/Chart.yaml b/charts/json-server/Chart.yaml index c11e5de..a6e826d 100644 --- a/charts/json-server/Chart.yaml +++ b/charts/json-server/Chart.yaml @@ -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" diff --git a/charts/json-server/templates/configmap.yaml b/charts/json-server/templates/configmap.yaml new file mode 100644 index 0000000..311bb01 --- /dev/null +++ b/charts/json-server/templates/configmap.yaml @@ -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" } + } diff --git a/charts/json-server/templates/deployment.yaml b/charts/json-server/templates/deployment.yaml index e9c1f49..7d9363d 100644 --- a/charts/json-server/templates/deployment.yaml +++ b/charts/json-server/templates/deployment.yaml @@ -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 }} diff --git a/charts/json-server/values.yaml b/charts/json-server/values.yaml index 00f0bc2..40b7353 100644 --- a/charts/json-server/values.yaml +++ b/charts/json-server/values.yaml @@ -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: ""