Skip to content

Commit

Permalink
fix: remove postgres persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
tjorbo committed Jul 30, 2024
1 parent 29ddc35 commit cd33654
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- $svc := .Values.global.postgresql.service.name | default (printf "%s-postgresql" .Release.Name) }}
{{- $svc := printf "%s-postgresql" .Release.Name }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -39,7 +39,7 @@ spec:
- name: DB_DATABASE
value: {{ .Values.global.postgresql.auth.database }}
- name: DB_PORT
value: {{ .Values.global.postgresql.service.ports.postgresql | quote }}
value: "5432"
- name: DB_ADDRESS
value: {{ printf "%s" $svc }}
- name: DB_USERNAME
Expand All @@ -65,6 +65,10 @@ spec:
- name: http
containerPort: 8080
protocol: TCP
command:
- "dotnet"
- "Dataport.Terminfinder.WebAPI.dll"
- "--dbmigrate"
startupProbe:
failureThreshold: 3
periodSeconds: 10
Expand Down
36 changes: 3 additions & 33 deletions terminfinder-chart/charts/terminfinder-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ global:
auth:
username: terminfinder
database: terminfinder
existingSecret: "" # if not set, default: "{{ Release.Name }}-postgres"
secretKeys:
userPasswordKey: "" # if not set, default: "password"
service:
name: "" # if not set, default: "{{ Release.Name }}-postgres"
ports:
postgresql: 5432 # Default port

replicaCount: 1

Expand Down Expand Up @@ -97,29 +90,6 @@ tolerations: [ ]
affinity: { }

postgresql:
enabled: true

serviceAccount:
create: true

## Set permissions for the data volume
## Only needed when volume has not correct permissions
volumePermissions:
enabled: true

image:
registry: docker.io # Notice, may this is not allowed
repository: bitnami/bitnami-shell
# tag: 11-debian-11-r77
# pullPolicy: Always
# pullSecrets: []

initdb:
# Enabling the UUID-OSSP
scripts:
99-enable-uuid.sql: |
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
ALTER EXTENSION "uuid-ossp" SET SCHEMA public;
# More variables / parameters can be found here:
# https://github.com/bitnami/charts/tree/main/bitnami/postgresql#parameters
primary:
persistence:
enabled: false
5 changes: 1 addition & 4 deletions terminfinder-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,7 @@ terminfinder-backend:
## Enable persistence using Persistent Volume Claims
## For BSI compliance, we need to use non-root user
persistence:
enabled: true
accessModes:
- ReadWriteOnce
size: 8Gi
enabled: false

# Resources (minimal)
resources:
Expand Down

0 comments on commit cd33654

Please sign in to comment.