From 7e492fd2ba133040fdf56d81927645da0378552f Mon Sep 17 00:00:00 2001 From: u1 Date: Tue, 6 Jan 2026 00:22:40 +0000 Subject: [PATCH] docs: document required secrets and port-forward access --- README.md | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 86 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f1a7503..2ac663a 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,79 @@ Założenie: obrazy są budowane/pushowane przez CI, a klaster (Argo CD/Flux) sa - `kustomize/base/` – wspólne zasoby (bez sekretów) - `kustomize/overlays/staging/` – staging (`namespace: trade-staging`) - `kustomize/overlays/prod/` – prod (`namespace: trade-prod`) +- `bootstrap/argocd/` – manifesty `Application` dla Argo CD + +## Wymagane sekrety (nie są w repo) + +### `trade-postgres` +W namespace środowiska (np. `trade-staging`) musi istnieć Secret: + +- `POSTGRES_USER` +- `POSTGRES_DB` +- `POSTGRES_PASSWORD` + +### `trade-hasura` +- `HASURA_GRAPHQL_ADMIN_SECRET` +- `HASURA_JWT_KEY` + +### `trade-pgadmin` (tylko staging overlay) +- `PGADMIN_DEFAULT_EMAIL` +- `PGADMIN_DEFAULT_PASSWORD` + +## Tworzenie sekretów (przykład, staging) + +```bash +export KUBECONFIG=/etc/rancher/k3s/k3s.yaml +ns=trade-staging + +# Postgres +read -rsp "POSTGRES_PASSWORD: " POSTGRES_PASSWORD; echo +cat <