Skip to content
Snippets Groups Projects
Commit e4f571d5 authored by Leah Tacke genannt Unterberg's avatar Leah Tacke genannt Unterberg
Browse files

tinkered with helm chart

parent 77ab4cbb
No related branches found
No related tags found
No related merge requests found
Pipeline #569155 passed
...@@ -49,7 +49,7 @@ spec: ...@@ -49,7 +49,7 @@ spec:
name: {{ tpl .Values.envFromSecret . | quote }} name: {{ tpl .Values.envFromSecret . | quote }}
env: env:
- name: API_PORT - name: API_PORT
value: {{ .Values.service.port }} value: {{ .Values.service.port | quote }}
- name: CORS_ORIGIN - name: CORS_ORIGIN
value: {{ tpl .Values.connections.origin . | quote}} value: {{ tpl .Values.connections.origin . | quote}}
{{- range $key, $value := .Values.apiConfig }} {{- range $key, $value := .Values.apiConfig }}
......
...@@ -19,15 +19,12 @@ ...@@ -19,15 +19,12 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: postgresql-auth-env name: {{ include "superset-mitm-service.fullname" . }}-postgresql-auth-env
labels: labels:
{{- include "superset-mitm-service.labels" . | nindent 4 }} {{- include "superset-mitm-service.labels" . | nindent 4 }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
type: Opaque type: Opaque
stringData: stringData:
MITM_DATABASE_DIALECT: {{.Values.mitmDB.mitm_database_dialect | quote }} POSTGRES_USER: {{.Values.mitmDB.mitm_database_user | quote }}
MITM_DATABASE_HOST: {{ tpl .Values.mitmDB.mitm_database_host . | quote }} POSTGRES_PASSWORD: {{.Values.mitmDB.mitm_database_password | quote }}
MITM_DATABASE_PORT: {{.Values.mitmDB.mitm_database_port | quote }} POSTGRES_DATABASE: {{.Values.mitmDB.mitm_database_db | quote }}
MITM_DATABASE_USER: {{.Values.mitmDB.mitm_database_user | quote }}
MITM_DATABASE_PASSWORD: {{.Values.mitmDB.mitm_database_password | quote }}
MITM_DATABASE_DB: {{.Values.mitmDB.mitm_database_db | quote }}
...@@ -9,7 +9,7 @@ replicaCount: 1 ...@@ -9,7 +9,7 @@ replicaCount: 1
image: image:
repository: registry.git-ce.rwth-aachen.de/machine-data/superset-mitm-service repository: registry.git-ce.rwth-aachen.de/machine-data/superset-mitm-service
# This sets the pull policy for images. # This sets the pull policy for images.
pullPolicy: always pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: "latest" tag: "latest"
...@@ -74,7 +74,7 @@ resources: { } ...@@ -74,7 +74,7 @@ resources: { }
startupProbe: startupProbe:
httpGet: httpGet:
path: /health path: /health
port: http port: 8180
initialDelaySeconds: 5 initialDelaySeconds: 5
timeoutSeconds: 1 timeoutSeconds: 1
failureThreshold: 60 failureThreshold: 60
...@@ -83,7 +83,7 @@ startupProbe: ...@@ -83,7 +83,7 @@ startupProbe:
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /health path: /health
port: http port: 8180
initialDelaySeconds: 5 initialDelaySeconds: 5
timeoutSeconds: 1 timeoutSeconds: 1
failureThreshold: 3 failureThreshold: 3
...@@ -92,7 +92,7 @@ livenessProbe: ...@@ -92,7 +92,7 @@ livenessProbe:
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /health path: /health
port: http port: 8180
initialDelaySeconds: 5 initialDelaySeconds: 5
timeoutSeconds: 1 timeoutSeconds: 1
failureThreshold: 3 failureThreshold: 3
...@@ -132,7 +132,7 @@ mitmDB: ...@@ -132,7 +132,7 @@ mitmDB:
mitm_database_dialect: "postgresql" mitm_database_dialect: "postgresql"
mitm_database_user: "mitm-pg-user" mitm_database_user: "mitm-pg-user"
mitm_database_password: "superweirdpasswordpleasedonotcrack" mitm_database_password: "superweirdpasswordpleasedonotcrack"
mitm_database_host: "{{ .Release.Name }}-postgresql" mitm_database_host: "{{ .Release.Name }}-mitm-postgresql"
mitm_database_port: "5432" mitm_database_port: "5432"
mitm_database_db: "mitm-db" mitm_database_db: "mitm-db"
...@@ -148,13 +148,13 @@ global: ...@@ -148,13 +148,13 @@ global:
allowInsecureImages: true allowInsecureImages: true
mitm-postgresql: mitm-postgresql:
image: # image:
registry: docker.io # registry: docker.io
repository: timescale/timescaledb # repository: timescale/timescaledb
tag: latest-pg16 # tag: latest-pg16
auth: auth:
existingSecret: "postgresql-auth-env" existingSecret: '{{ template "superset-mitm-service.fullname" . }}-postgresql-auth-env'
primary: primary:
## ##
...@@ -176,6 +176,6 @@ mitm-postgresql: ...@@ -176,6 +176,6 @@ mitm-postgresql:
ports: ports:
postgresql: 5432 postgresql: 5432
initScripts: # initScripts:
timescaledb: | # timescaledb: |
CREATE EXTENSION IF NOT EXISTS timescaledb; # CREATE EXTENSION IF NOT EXISTS timescaledb;
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment