Skip to content
Snippets Groups Projects
Commit 6f0cb4ed authored by Loïc Hervé's avatar Loïc Hervé
Browse files

staged

parent d929f2c4
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,6 @@ kind: ConfigMap
metadata:
name: {{ include "MyAppCtx.fullname" . }}-api-config
data:
DB_ENDPOINT: "postgres:5432"
DB_NAME: "{{ .Values.name }}-db"
DB_ENDPOINT: "{{ include "MyAppCtx.fullname" . }}-service:5432"
DB_NAME: "computerdb-db"
{{- end}}
......@@ -14,6 +14,9 @@ spec:
metadata:
labels:
app: {{ include "MyAppCtx.fullname" . }}-api
annotations:
checksum/config: {{ include (print $.Template.BasePath "/api/api-config.yaml") . | sha256sum }}
checksum/config-db: {{ include (print $.Template.BasePath "/database/pg-config.yaml") . | sha256sum }}
spec:
securityContext:
runAsUser: 1001
......
......@@ -4,6 +4,6 @@ kind: ConfigMap
metadata:
name: {{ include "MyAppCtx.fullname" . }}-pg-config
data:
db_name: "{{ .Values.name }}-db"
db_name: "computerdb-db"
db_path: "/var/lib/postgresql/data/pgdata"
{{- end}}
......@@ -14,6 +14,8 @@ spec:
metadata:
labels:
app: {{ include "MyAppCtx.fullname" . }}-pg
annotations:
checksum/config: {{ include (print $.Template.BasePath "/database/pg-config.yaml") . | sha256sum }}
spec:
containers:
- name: postgres
......
......@@ -14,6 +14,8 @@ spec:
metadata:
labels:
app: {{ include "MyAppCtx.fullname" . }}-front
annotations:
checksum/config: {{ include (print $.Template.BasePath "/front/front-config.yaml") . | sha256sum }}
spec:
imagePullSecrets:
- name: takima-school-registry
......
# Default values for CDB app.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# We have only done front for now
nameOverride: cdb-stage
api:
ingress:
host: api-staging.lherve.takima.school
front:
ingress:
host: www-staging.lherve.takima.school
\ 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