docs
This commit is contained in:
@@ -96,10 +96,10 @@ You'll need read/write access to these repositories:
|
||||
cd launchpad
|
||||
```
|
||||
|
||||
2. **helm-values** (Values repo)
|
||||
2. **helm-prod-values** (Values repo)
|
||||
```bash
|
||||
git clone https://git.forteapps.net/Forte/helm-prod-values.git
|
||||
cd helm-values
|
||||
cd helm-prod-values
|
||||
```
|
||||
|
||||
3. **forte-helm** (Chart repo - read-only for most developers)
|
||||
@@ -175,13 +175,13 @@ npm run dev
|
||||
│ - GitHub Actions builds image │
|
||||
│ - Pushes to container registry (GHCR, Docker Hub) │
|
||||
│ - Tags with version (e.g., v2.0.4) │
|
||||
│ - Updates helm-values repository with new tag │
|
||||
│ - Updates helm-prod-values repository with new tag │
|
||||
└─────────────────────────────────────────────────────────────────┘
|
||||
│
|
||||
▼
|
||||
┌─────────────────────────────────────────────────────────────────┐
|
||||
│ Step 3: GitOps Sync (Automated) │
|
||||
│ - ArgoCD detects change in helm-values │
|
||||
│ - ArgoCD detects change in helm-prod-values │
|
||||
│ - Pulls updated configuration │
|
||||
│ - Syncs to Kubernetes cluster │
|
||||
│ - Sends Slack notification on success/failure │
|
||||
@@ -201,7 +201,7 @@ Our setup uses three repositories:
|
||||
| Repository | Purpose | Who Edits | How Often |
|
||||
|------------|---------|-----------|-----------|
|
||||
| **forte-helm** | Helm chart templates (generic, reusable) | Platform engineers | ❌ Rarely |
|
||||
| **helm-values** | Application configuration (image tag, env vars) | Developers / CI pipelines | ✅ Sometimes |
|
||||
| **helm-prod-values** | Application configuration (image tag, env vars) | Developers / CI pipelines | ✅ Sometimes |
|
||||
| **launchpad** | ArgoCD Applications (what gets deployed) | Platform / DevOps engineers | ✅ Per new app |
|
||||
|
||||
### Example: Deploying "myapp"
|
||||
@@ -223,7 +223,7 @@ spec:
|
||||
value: {{ .Values.app.port }}
|
||||
```
|
||||
|
||||
#### Repository: `helm-values` (Your App Config)
|
||||
#### Repository: `helm-prod-values` (Your App Config)
|
||||
```yaml
|
||||
# myapp/values.yaml
|
||||
# Your app's specific configuration
|
||||
@@ -248,13 +248,13 @@ metadata:
|
||||
namespace: argocd
|
||||
spec:
|
||||
sources:
|
||||
- repoURL: https://github.com/fortedigital/forte-helm
|
||||
- repoURL: https://git.forteapps.net/Forte/forte-helm
|
||||
path: forteapp
|
||||
helm:
|
||||
valueFiles:
|
||||
- $values/myapp/values.yaml
|
||||
|
||||
- repoURL: git@github.com:fortedigital/helm-values.git
|
||||
- repoURL: git@github.com:fortedigital/helm-prod-values.git
|
||||
ref: values
|
||||
|
||||
destination:
|
||||
@@ -316,10 +316,10 @@ Ensure your app repository has:
|
||||
docker build -t ghcr.io/fortedigital/hello-world:${{ steps.version.outputs.VERSION }} .
|
||||
docker push ghcr.io/fortedigital/hello-world:${{ steps.version.outputs.VERSION }}
|
||||
|
||||
- name: Update helm-values
|
||||
- name: Update helm-prod-values
|
||||
run: |
|
||||
git clone git@github.com:fortedigital/helm-values.git
|
||||
cd helm-values
|
||||
git clone git@github.com:fortedigital/helm-prod-values.git
|
||||
cd helm-prod-values
|
||||
mkdir -p hello-world
|
||||
cat > hello-world/values.yaml <<EOF
|
||||
app:
|
||||
@@ -334,7 +334,7 @@ Ensure your app repository has:
|
||||
|
||||
### Step 2: Create Helm Values
|
||||
|
||||
Create a folder in `helm-values` repository:
|
||||
Create a folder in `helm-prod-values` repository:
|
||||
|
||||
```bash
|
||||
cd ~/dev/k8s/helm-prod-values
|
||||
@@ -412,7 +412,7 @@ spec:
|
||||
|
||||
sources:
|
||||
# Source 1: Helm chart templates
|
||||
- repoURL: https://github.com/fortedigital/forte-helm
|
||||
- repoURL: https://git.forteapps.net/Forte/forte-helm
|
||||
path: forteapp
|
||||
targetRevision: HEAD
|
||||
helm:
|
||||
@@ -420,7 +420,7 @@ spec:
|
||||
- $values/hello-world/values.yaml
|
||||
|
||||
# Source 2: Helm values
|
||||
- repoURL: git@github.com:fortedigital/helm-values.git
|
||||
- repoURL: git@github.com:fortedigital/helm-prod-values.git
|
||||
targetRevision: HEAD
|
||||
ref: values
|
||||
|
||||
@@ -528,7 +528,7 @@ git push origin main
|
||||
2. ✅ Builds new Docker image
|
||||
3. ✅ Tags with new version (e.g., `v20260316-143022`)
|
||||
4. ✅ Pushes to container registry
|
||||
5. ✅ Updates `helm-values/myapp/values.yaml` with new tag
|
||||
5. ✅ Updates `helm-prod-values/myapp/values.yaml` with new tag
|
||||
6. ✅ ArgoCD detects change
|
||||
7. ✅ Syncs new version to cluster
|
||||
8. ✅ Sends Slack notification
|
||||
@@ -683,7 +683,7 @@ git push
|
||||
|
||||
#### Step 4: Reference Secret in Application
|
||||
|
||||
Update your `helm-values/myapp/values.yaml`:
|
||||
Update your `helm-prod-values/myapp/values.yaml`:
|
||||
|
||||
```yaml
|
||||
app:
|
||||
@@ -791,7 +791,7 @@ Three authentication modes are supported:
|
||||
#### Step 1: Configure Helm Values
|
||||
|
||||
```yaml
|
||||
# In helm-values/myapp/values.yaml
|
||||
# In helm-prod-values/myapp/values.yaml
|
||||
auth:
|
||||
enabled: true
|
||||
type: token # Token mode (default)
|
||||
@@ -913,7 +913,7 @@ rm private/myapp-auth-oidc.yaml
|
||||
#### Step 3: Configure Helm Values
|
||||
|
||||
```yaml
|
||||
# In helm-values/myapp/values.yaml
|
||||
# In helm-prod-values/myapp/values.yaml
|
||||
auth:
|
||||
enabled: true
|
||||
type: oidc # OIDC mode
|
||||
@@ -1049,7 +1049,7 @@ policies.forteapps.io/auth-image-version: "v1.2.3"
|
||||
#### Example 1: Internal API with Token Auth
|
||||
|
||||
```yaml
|
||||
# helm-values/internal-api/values.yaml
|
||||
# helm-prod-values/internal-api/values.yaml
|
||||
app:
|
||||
image:
|
||||
repository: ghcr.io/company/internal-api
|
||||
@@ -1077,7 +1077,7 @@ curl -H "Authorization: Bearer d4f88f..." \
|
||||
#### Example 2: User-Facing App with OIDC
|
||||
|
||||
```yaml
|
||||
# helm-values/web-app/values.yaml
|
||||
# helm-prod-values/web-app/values.yaml
|
||||
app:
|
||||
image:
|
||||
repository: ghcr.io/company/web-app
|
||||
@@ -1112,7 +1112,7 @@ kubectl create secret generic auth-oidc \
|
||||
#### Example 3: MCP Server with OAuth 2.0
|
||||
|
||||
```yaml
|
||||
# helm-values/mcp-server/values.yaml
|
||||
# helm-prod-values/mcp-server/values.yaml
|
||||
app:
|
||||
image:
|
||||
repository: ghcr.io/company/mcp-server
|
||||
@@ -1136,7 +1136,7 @@ The MCP auth mode implements RFC 9728 (OAuth 2.0 Protected Resource Metadata) fo
|
||||
#### Example 4: Disabling Authentication
|
||||
|
||||
```yaml
|
||||
# helm-values/public-api/values.yaml
|
||||
# helm-prod-values/public-api/values.yaml
|
||||
auth:
|
||||
enabled: false # No authentication
|
||||
|
||||
@@ -1500,7 +1500,7 @@ kubectl exec -n myapp <pod-name> -- env
|
||||
# Check if secrets exist
|
||||
kubectl get secrets -n myapp
|
||||
|
||||
# Increase resources in helm-values
|
||||
# Increase resources in helm-prod-values
|
||||
vim ~/dev/k8s/helm-prod-values/myapp/values.yaml
|
||||
```
|
||||
|
||||
@@ -1649,7 +1649,7 @@ If you're stuck:
|
||||
### Configuration Management
|
||||
|
||||
✅ **DO**:
|
||||
- Keep configuration in `helm-values` repository
|
||||
- Keep configuration in `helm-prod-values` repository
|
||||
- Use environment variables for config
|
||||
- Document what each value does
|
||||
- Use reasonable resource limits
|
||||
|
||||
Reference in New Issue
Block a user