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
|
# 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.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# 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
|
# 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
|
# 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.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# 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
|
port: http
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- 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 }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
@ -6,6 +6,7 @@ replicaCount: 1
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
repository: bv11-cr01.bessems.eu/library/json-server
|
repository: bv11-cr01.bessems.eu/library/json-server
|
||||||
|
tag: latest
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: ""
|
tag: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user