A running Kubernetes cluster (e.g. Minikube, K3s, GKE, EKS)
kubectl and helm installed
Your working directory contains:
backend-env.sh
frontend-env.sh
deploy-k8s-secret.sh
🔧 Step 1: Generate Secrets and Create Kubernetes Secrets
Run the deploy-k8s-secrets.sh script:
./deploy-k8s-secret.sh➜ scripts ✗ ./deploy-k8s-secret.sh🛠️ Running backend-env.sh🔐 Creating backend.env.local...Enter your database password:✅ Sensitive data has been written to ./backend.env.local with restricted permissions.🌱 Environment check passed.🛠️ Running frontend-env.shCreating ./frontend.env.local...Enter the FlowInquiry back-end server URL address (e.g., http://localhost or http://localhost:8080): http://localhost:8080✅ Appended AUTH_SECRET to ./frontend.env.local.✅ Frontend environment initialization complete.🔐 Creating Kubernetes Secret: flowinquiry-backend-secretsecret/flowinquiry-backend-secret configured🔐 Creating Kubernetes Secret: flowinquiry-frontend-secretsecret/flowinquiry-frontend-secret configured✅ All secrets created successfully.
This will:
Prompt you to enter values (e.g., database password, backend URL)
Generate backend.env.local and frontend.env.local
Create two Kubernetes secrets:
flowinquiry-backend-secret
flowinquiry-frontend-secret
🚀 Step 2: Install the Helm Chart
From the directory containing flowinquiry-helm, run:
helm upgrade --install flowinquiry ./flowinquiry-helm➜ flowinquiry-k8s ✗ helm upgrade --install flowinquiry ./flowinquiry-helmRelease "flowinquiry" has been upgraded. Happy Helming!NAME: flowinquiryLAST DEPLOYED: Mon May 19 17:13:12 2025NAMESPACE: defaultSTATUS: deployedREVISION: 2TEST SUITE: None
🧪 Step 3: Check Deployment
kubectl get podskubectl get svc
Ensure all pods (backend, frontend, postgresql, caddy) are running and services are created.