Skip to content
Snippets Groups Projects
Commit a733e38b authored by derrabauke's avatar derrabauke
Browse files

make persistance via mongo db work

parent 806f2a61
No related branches found
No related tags found
No related merge requests found
......@@ -34,28 +34,16 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
- name: primary
containerPort: {{ .Values.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
port: primary
readinessProbe:
httpGet:
path: /
port: http
port: primary
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
apiVersion: v1
kind: PersistentVolume
metadata:
name: 'pv-todos'
spec:
storageClass: {{ .Values.mongodb.persistence.storageClass }}
accessModes:
- ReadWriteOnce
capacity:
storage: 1Gi
hostPath:
path: '/data/{{ include "backend.fullname" . }}/'
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: 'pvc-todos'
spec:
storageClass: {{ .Values.mongodb.persistence.storageClass }}
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
# Backend value definitions:
replicaCount: 1
image:
repository: backend #! change to container registry if possible
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "v0.0.2"
replicaCount: 1
port: 3002
imagePullSecrets: []
nameOverride: ""
......@@ -65,23 +65,17 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
# Depedencies definition
mongodb:
fullnameOverride: 'mongodb'
image:
registry: 'docker.io'
repository: 'bitnami/mongodb'
tag: '10.10.2'
tag: 'latest'
service:
port: 27017
# auth:
# rootPassword: mongodb
# persistence:
# enabled: true
# existingClaim: 'pvc-db'
persistence:
enabled: true
existingClaim: 'pvc-todos'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment