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: ...@@ -34,28 +34,16 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
ports: ports:
- name: http - name: primary
containerPort: {{ .Values.service.port }} containerPort: {{ .Values.port }}
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
port: http port: primary
readinessProbe: readinessProbe:
httpGet: httpGet:
path: / path: /
port: http port: primary
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- 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: # Backend value definitions:
replicaCount: 1
image: image:
repository: backend #! change to container registry if possible repository: backend #! change to container registry if possible
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: "v0.0.2" tag: "v0.0.2"
replicaCount: 1
port: 3002
imagePullSecrets: [] imagePullSecrets: []
nameOverride: "" nameOverride: ""
...@@ -65,23 +65,17 @@ autoscaling: ...@@ -65,23 +65,17 @@ autoscaling:
targetCPUUtilizationPercentage: 80 targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
# Depedencies definition # Depedencies definition
mongodb: mongodb:
fullnameOverride: 'mongodb' fullnameOverride: 'mongodb'
image: image:
registry: 'docker.io' registry: 'docker.io'
repository: 'bitnami/mongodb' repository: 'bitnami/mongodb'
tag: '10.10.2' tag: 'latest'
service: service:
port: 27017 port: 27017
# auth: # auth:
# rootPassword: mongodb # rootPassword: mongodb
# persistence: persistence:
# enabled: true enabled: true
# existingClaim: 'pvc-db' 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