++
This commit is contained in:
parent
c318ee0ca3
commit
377280b2fa
@ -22,12 +22,12 @@ spec:
|
|||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
vault.hashicorp.com/role: workspaces
|
vault.hashicorp.com/role: workspaces
|
||||||
vault.hashicorp.com/agent-inject-secret-workspaces-db: secrets/data/postgresql/apps/workspaces
|
vault.hashicorp.com/agent-inject-secret-workspaces-db: secrets/data/apps/workspaces/postgres
|
||||||
vault.hashicorp.com/agent-inject-template-workspaces-db: |-
|
vault.hashicorp.com/agent-inject-template-workspaces-db: |-
|
||||||
{{- with secret "secrets/data/postgresql/apps/workspaces" -}}
|
{{- with secret "secrets/data/apps/workspaces/postgres" -}}
|
||||||
POSTGRES_ADDRESS=postgresql.workspaces.svc.cluster.local
|
POSTGRES_ADDRESS={{ index .Data.data "host" }}
|
||||||
POSTGRES_PORT=5432
|
POSTGRES_PORT={{ index .Data.data "port" }}
|
||||||
POSTGRES_DB=workspaces_db
|
POSTGRES_DB={{ index .Data.data "database" }}
|
||||||
POSTGRES_USER={{ index .Data.data "username" }}
|
POSTGRES_USER={{ index .Data.data "username" }}
|
||||||
POSTGRES_PASSWORD={{ index .Data.data "password" }}
|
POSTGRES_PASSWORD={{ index .Data.data "password" }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
11
apps/workspaces/d8-ugmk-prod/kustomization.yaml
Normal file
11
apps/workspaces/d8-ugmk-prod/kustomization.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: workspaces
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: patch.yaml
|
||||||
|
target:
|
||||||
|
kind: HelmRelease
|
||||||
|
name: frontend
|
||||||
13
apps/workspaces/d8-ugmk-prod/patch.yaml
Normal file
13
apps/workspaces/d8-ugmk-prod/patch.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: frontend
|
||||||
|
namespace: workspaces
|
||||||
|
spec:
|
||||||
|
values:
|
||||||
|
services:
|
||||||
|
frontend:
|
||||||
|
deployment:
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
@ -22,4 +22,5 @@ resources:
|
|||||||
- ../../apps/reviews/d8-ugmk-prod
|
- ../../apps/reviews/d8-ugmk-prod
|
||||||
- ../../apps/remarks/d8-ugmk-prod
|
- ../../apps/remarks/d8-ugmk-prod
|
||||||
- ../../apps/auth-flow/d8-ugmk-prod
|
- ../../apps/auth-flow/d8-ugmk-prod
|
||||||
- ../../apps/notes/d8-ugmk-prod
|
- ../../apps/notes/d8-ugmk-prod
|
||||||
|
- ../../apps/workspaces/d8-ugmk-prod
|
||||||
Loading…
Reference in New Issue
Block a user