repo names fix
Deploy Gitea Pages / build-and-deploy (push) Failing after 6s

This commit is contained in:
2026-04-13 16:08:01 +02:00
parent 4abd528b19
commit 18fb0ca3da
20 changed files with 88 additions and 88 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ metadata:
spec: spec:
project: default project: default
source: source:
repoURL: git@github.com:fortedigital/sturdy-adventure.git repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
path: infra path: infra
destination: destination:
+11 -11
View File
@@ -89,21 +89,21 @@ If you do need cluster access, install:
You'll need read/write access to these repositories: You'll need read/write access to these repositories:
1. **sturdy-adventure** (Config repo) 1. **launchpad** (Config repo)
```bash ```bash
git clone https://github.com/fortedigital/sturdy-adventure.git git clone https://git.forteapps.net/Forte/launchpad.git
cd sturdy-adventure cd launchpad
``` ```
2. **helm-values** (Values repo) 2. **helm-values** (Values repo)
```bash ```bash
git clone git@github.com:fortedigital/helm-values.git git clone https://git.forteapps.net/Forte/helm-prod-values.git
cd helm-values cd helm-values
``` ```
3. **forte-helm** (Chart repo - read-only for most developers) 3. **forte-helm** (Chart repo - read-only for most developers)
```bash ```bash
git clone https://github.com/fortedigital/forte-helm.git git clone https://git.forteapps.net/Forte/forte-helm.git
cd forte-helm cd forte-helm
``` ```
@@ -132,9 +132,9 @@ mkdir -p ~/dev/k8s
cd ~/dev/k8s cd ~/dev/k8s
# Clone repositories # Clone repositories
git clone https://github.com/fortedigital/sturdy-adventure.git launchpad git clone https://git.forteapps.net/Forte/launchpad.git launchpad
git clone git@github.com:fortedigital/helm-values.git helm-prod-values git clone https://git.forteapps.net/Forte/helm-prod-values helm-prod-values
git clone https://github.com/fortedigital/forte-helm.git forte-helm git clone https://git.forteapps.net/Forte/forte-helm forte-helm
# Your folder structure: # Your folder structure:
# ~/dev/k8s/ # ~/dev/k8s/
@@ -201,7 +201,7 @@ Our setup uses three repositories:
|------------|---------|-----------|-----------| |------------|---------|-----------|-----------|
| **forte-helm** | Helm chart templates (generic, reusable) | Platform engineers | ❌ Rarely | | **forte-helm** | Helm chart templates (generic, reusable) | Platform engineers | ❌ Rarely |
| **helm-values** | Application configuration (image tag, env vars) | Developers / CI pipelines | ✅ Sometimes | | **helm-values** | Application configuration (image tag, env vars) | Developers / CI pipelines | ✅ Sometimes |
| **sturdy-adventure** | ArgoCD Applications (what gets deployed) | Platform / DevOps engineers | ✅ Per new app | | **launchpad** | ArgoCD Applications (what gets deployed) | Platform / DevOps engineers | ✅ Per new app |
### Example: Deploying "myapp" ### Example: Deploying "myapp"
@@ -236,7 +236,7 @@ app:
value: https://api.example.com value: https://api.example.com
``` ```
#### Repository: `sturdy-adventure` (ArgoCD Application) #### Repository: `launchpad` (ArgoCD Application)
```yaml ```yaml
# apps/myapp.yaml # apps/myapp.yaml
# Tells ArgoCD to deploy your app # Tells ArgoCD to deploy your app
@@ -386,7 +386,7 @@ git push
### Step 3: Create ArgoCD Application Manifest ### Step 3: Create ArgoCD Application Manifest
In the `sturdy-adventure` repository, create `apps/hello-world.yaml`: In the `launchpad` repository, create `apps/hello-world.yaml`:
```yaml ```yaml
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
+6 -6
View File
@@ -53,8 +53,8 @@ This Kubernetes cluster uses a **GitOps approach** powered by **ArgoCD**, where
┌────────────────────────────────┐ ┌────────────────────────────────┐
│ Config Repository │ │ Config Repository │
│ (ArgoCD Applications) │ │ (ArgoCD Applications) │
│ github.com/fortedigital/ │ git.forteapps.net/Forte/
sturdy-adventure launchpad
└────────────────────────────────┘ └────────────────────────────────┘
@@ -109,12 +109,12 @@ This Kubernetes cluster uses a **GitOps approach** powered by **ArgoCD**, where
## Repository Structure ## Repository Structure
### 1. **Config Repository** (Current Repo) ### 1. **Config Repository** (Current Repo)
**Repository**: `https://github.com/fortedigital/sturdy-adventure.git` **Repository**: `https://git.forteapps.net/Forte/launchpad`
**Purpose**: GitOps configuration - ArgoCD Applications and cluster resources **Purpose**: GitOps configuration - ArgoCD Applications and cluster resources
**Location**: `C:\dev\k8s\launchpad` **Location**: `C:\dev\k8s\launchpad`
``` ```
sturdy-adventure/ launchpad/
├── bootstrap.sh # Cluster initialization script ├── bootstrap.sh # Cluster initialization script
├── _app-of-apps.yaml # Root ArgoCD Application (App-of-Apps pattern) ├── _app-of-apps.yaml # Root ArgoCD Application (App-of-Apps pattern)
@@ -405,7 +405,7 @@ jobs:
1. **Config Repo Change**: 1. **Config Repo Change**:
- Developer updates `apps/myapp.yaml` - Developer updates `apps/myapp.yaml`
- Pushes to `sturdy-adventure` repo - Pushes to `launchpad` repo
- ArgoCD detects change (60s reconciliation) - ArgoCD detects change (60s reconciliation)
- Syncs application to cluster - Syncs application to cluster
@@ -561,7 +561,7 @@ Notifications include:
**Rebuild Process**: **Rebuild Process**:
1. Provision new Kubernetes cluster 1. Provision new Kubernetes cluster
2. Clone `sturdy-adventure` repository 2. Clone `launchpad` repository
3. Run `./bootstrap.sh` 3. Run `./bootstrap.sh`
4. ArgoCD installs and syncs all applications 4. ArgoCD installs and syncs all applications
5. Manually recreate unsealed secrets and seal them 5. Manually recreate unsealed secrets and seal them
+20 -20
View File
@@ -51,8 +51,8 @@ kubectl get nodes
```bash ```bash
# 1. Clone config repository # 1. Clone config repository
git clone https://github.com/fortedigital/sturdy-adventure.git git clone https://git.forteapps.net/Forte/launchpad
cd sturdy-adventure cd launchpad
# 2. Set cluster name (optional) # 2. Set cluster name (optional)
export CLUSTER_NAME="prod-cluster-01" export CLUSTER_NAME="prod-cluster-01"
@@ -130,10 +130,10 @@ Generate a dedicated SSH key for ArgoCD without a passphrase (required for autom
```bash ```bash
# Generate ED25519 key (recommended - smaller and more secure) # Generate ED25519 key (recommended - smaller and more secure)
ssh-keygen -t ed25519 -C "argocd-deploy-key-sturdy-adventure" -f argocd-deploy-key -N "" ssh-keygen -t ed25519 -C "argocd-deploy-key-launchpad" -f argocd-deploy-key -N ""
# Or RSA key if ED25519 is not supported # Or RSA key if ED25519 is not supported
ssh-keygen -t rsa -b 4096 -C "argocd-deploy-key-sturdy-adventure" -f argocd-deploy-key -N "" ssh-keygen -t rsa -b 4096 -C "argocd-deploy-key-launchpad" -f argocd-deploy-key -N ""
``` ```
This creates two files: This creates two files:
@@ -148,7 +148,7 @@ This creates two files:
``` ```
2. Go to GitHub repository settings: 2. Go to GitHub repository settings:
- Navigate to: `https://github.com/fortedigital/sturdy-adventure/settings/keys` - Navigate to: `https://git.forteapps.net/Forte/launchpad/settings/keys`
- Or: Repository → Settings → Deploy keys - Or: Repository → Settings → Deploy keys
3. Click **"Add deploy key"** 3. Click **"Add deploy key"**
@@ -227,7 +227,7 @@ metadata:
spec: spec:
project: default project: default
source: source:
repoURL: git@github.com:fortedigital/sturdy-adventure.git repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: main targetRevision: main
path: cluster-resources path: cluster-resources
destination: destination:
@@ -273,7 +273,7 @@ rm /tmp/test-repo-access.yaml
# Add new public key to GitHub (keep old key for now) # Add new public key to GitHub (keep old key for now)
# Update Kubernetes secret # Update Kubernetes secret
kubectl create secret generic repo-sturdy-adventure \ kubectl create secret generic repo-launchpad \
--from-file=sshPrivateKey=argocd-new-key \ --from-file=sshPrivateKey=argocd-new-key \
--namespace=argocd \ --namespace=argocd \
--dry-run=client -o yaml | kubectl apply -f - --dry-run=client -o yaml | kubectl apply -f -
@@ -290,7 +290,7 @@ rm /tmp/test-repo-access.yaml
kubectl get secrets -n argocd -l argocd.argoproj.io/secret-type=repository kubectl get secrets -n argocd -l argocd.argoproj.io/secret-type=repository
# Review deploy keys in GitHub # Review deploy keys in GitHub
# Visit: https://github.com/fortedigital/sturdy-adventure/settings/keys # Visit: https://git.forteapps.net/Forte/launchpad/settings/keys
``` ```
4. **Use Different Keys per Repository** 4. **Use Different Keys per Repository**
@@ -304,16 +304,16 @@ rm /tmp/test-repo-access.yaml
```bash ```bash
# Check if secret exists # Check if secret exists
kubectl get secret repo-sturdy-adventure -n argocd kubectl get secret repo-launchpad -n argocd
# Verify secret has correct label # Verify secret has correct label
kubectl get secret repo-sturdy-adventure -n argocd -o yaml | grep argocd.argoproj.io/secret-type kubectl get secret repo-launchpad -n argocd -o yaml | grep argocd.argoproj.io/secret-type
# Check ArgoCD application controller logs # Check ArgoCD application controller logs
kubectl logs -n argocd deployment/argocd-application-controller | grep -i "permission denied" kubectl logs -n argocd deployment/argocd-application-controller | grep -i "permission denied"
# Verify deploy key is added to GitHub # Verify deploy key is added to GitHub
# Visit: https://github.com/fortedigital/sturdy-adventure/settings/keys # Visit: https://git.forteapps.net/Forte/launchpad/settings/keys
``` ```
**Issue: "Host key verification failed"** **Issue: "Host key verification failed"**
@@ -324,7 +324,7 @@ kubectl exec -n argocd deployment/argocd-repo-server -- \
ssh-keyscan github.com >> ~/.ssh/known_hosts ssh-keyscan github.com >> ~/.ssh/known_hosts
# Or disable strict host key checking (less secure) # Or disable strict host key checking (less secure)
kubectl patch secret repo-sturdy-adventure -n argocd \ kubectl patch secret repo-launchpad -n argocd \
--type merge \ --type merge \
-p '{"stringData":{"insecure":"true"}}' -p '{"stringData":{"insecure":"true"}}'
``` ```
@@ -336,7 +336,7 @@ kubectl patch secret repo-sturdy-adventure -n argocd \
kubectl logs -n argocd deployment/argocd-repo-server kubectl logs -n argocd deployment/argocd-repo-server
# Refresh repository connection # Refresh repository connection
kubectl delete secret repo-sturdy-adventure -n argocd kubectl delete secret repo-launchpad -n argocd
# Recreate secret (see Step 3 above) # Recreate secret (see Step 3 above)
# Restart ArgoCD components # Restart ArgoCD components
@@ -346,12 +346,12 @@ kubectl rollout restart deployment argocd-application-controller -n argocd
#### Multiple Repository Setup #### Multiple Repository Setup
For the three-repository pattern (sturdy-adventure, forte-helm, helm-values): For the three-repository pattern (launchpad, forte-helm, helm-values):
```bash ```bash
# 1. sturdy-adventure (main config repo) # 1. launchpad (main config repo)
ssh-keygen -t ed25519 -C "argocd-sturdy-adventure" -f key-sturdy -N "" ssh-keygen -t ed25519 -C "argocd-launchpad" -f key-sturdy -N ""
# Add key-sturdy.pub to: https://github.com/fortedigital/sturdy-adventure/settings/keys # Add key-sturdy.pub to: https://git.forteapps.net/Forte/launchpad/settings/keys
# 2. helm-values (private values repo) # 2. helm-values (private values repo)
ssh-keygen -t ed25519 -C "argocd-helm-values" -f key-helm-values -N "" ssh-keygen -t ed25519 -C "argocd-helm-values" -f key-helm-values -N ""
@@ -360,7 +360,7 @@ ssh-keygen -t ed25519 -C "argocd-helm-values" -f key-helm-values -N ""
# 3. forte-helm (private helm charts repo) # 3. forte-helm (private helm charts repo)
# Create secrets # Create secrets
kubectl create secret generic repo-sturdy-adventure \ kubectl create secret generic repo-launchpad \
--from-file=sshPrivateKey=key-sturdy \ --from-file=sshPrivateKey=key-sturdy \
--namespace=argocd --dry-run=client -o yaml | \ --namespace=argocd --dry-run=client -o yaml | \
kubectl label --local -f - argocd.argoproj.io/secret-type=repository --dry-run=client -o yaml | \ kubectl label --local -f - argocd.argoproj.io/secret-type=repository --dry-run=client -o yaml | \
@@ -385,9 +385,9 @@ If you're currently using HTTPS and want to switch to SSH:
# 2. Update all Application manifests # 2. Update all Application manifests
# Change from: # Change from:
# repoURL: https://github.com/fortedigital/sturdy-adventure.git # repoURL: https://git.forteapps.net/Forte/launchpad
# To: # To:
# repoURL: git@github.com:fortedigital/sturdy-adventure.git # repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
# 3. Update and commit # 3. Update and commit
find . -name "*.yaml" -type f -exec sed -i 's|https://github.com/fortedigital/|git@github.com:fortedigital/|g' {} + find . -name "*.yaml" -type f -exec sed -i 's|https://github.com/fortedigital/|git@github.com:fortedigital/|g' {} +
+4 -4
View File
@@ -62,14 +62,14 @@ Internet
## Repository Reference ## Repository Reference
### Config Repository: `sturdy-adventure` ### Config Repository: `launchpad`
**URL**: `https://github.com/fortedigital/sturdy-adventure.git` **URL**: `https://git.forteapps.net/Forte/launchpad`
#### Directory Structure #### Directory Structure
``` ```
sturdy-adventure/ launchpad/
├── bootstrap.sh # Cluster initialization script ├── bootstrap.sh # Cluster initialization script
├── _app-of-apps.yaml # Root ArgoCD Application ├── _app-of-apps.yaml # Root ArgoCD Application
@@ -171,7 +171,7 @@ metadata:
spec: spec:
project: default project: default
source: source:
repoURL: git@github.com:fortedigital/sturdy-adventure.git repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
path: infra path: infra
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
+1 -1
View File
@@ -15,7 +15,7 @@ spec:
project: default project: default
source: source:
repoURL: git@github.com:fortedigital/sturdy-adventure.git repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
path: cluster-resources path: cluster-resources
directory: directory:
+1 -1
View File
@@ -23,7 +23,7 @@ spec:
valueFiles: valueFiles:
- $values/infra/values/fluent-bit-values.yaml - $values/infra/values/fluent-bit-values.yaml
- repoURL: git@github.com:fortedigital/sturdy-adventure.git - repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
+1 -1
View File
@@ -23,7 +23,7 @@ spec:
valueFiles: valueFiles:
- $values/infra/values/gitea-actions-values.yaml - $values/infra/values/gitea-actions-values.yaml
- repoURL: git@github.com:fortedigital/sturdy-adventure.git - repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
+1 -1
View File
@@ -23,7 +23,7 @@ spec:
valueFiles: valueFiles:
- $values/infra/values/gitea-values.yaml - $values/infra/values/gitea-values.yaml
- repoURL: git@github.com:fortedigital/sturdy-adventure.git - repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
+1 -1
View File
@@ -15,7 +15,7 @@ spec:
project: default project: default
source: source:
repoURL: git@github.com:fortedigital/sturdy-adventure.git repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
path: infra/dashboards path: infra/dashboards
+1 -1
View File
@@ -23,7 +23,7 @@ spec:
valueFiles: valueFiles:
- $values/infra/values/grafana-values.yaml - $values/infra/values/grafana-values.yaml
- repoURL: git@github.com:fortedigital/sturdy-adventure.git - repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
+1 -1
View File
@@ -23,7 +23,7 @@ spec:
valueFiles: valueFiles:
- $values/infra/values/keycloak-values.yaml - $values/infra/values/keycloak-values.yaml
- repoURL: git@github.com:fortedigital/sturdy-adventure.git - repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
+1 -1
View File
@@ -15,7 +15,7 @@ spec:
project: default project: default
source: source:
repoURL: git@github.com:fortedigital/sturdy-adventure.git repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
path: cluster-resources/policies path: cluster-resources/policies
+1 -1
View File
@@ -23,7 +23,7 @@ spec:
valueFiles: valueFiles:
- $values/infra/values/loki-values.yaml - $values/infra/values/loki-values.yaml
- repoURL: git@github.com:fortedigital/sturdy-adventure.git - repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
+1 -1
View File
@@ -15,7 +15,7 @@ spec:
project: default project: default
source: source:
repoURL: git@github.com:fortedigital/sturdy-adventure.git repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
path: cluster-resources/network path: cluster-resources/network
+1 -1
View File
@@ -23,7 +23,7 @@ spec:
valueFiles: valueFiles:
- $values/infra/values/opencost-values.yaml - $values/infra/values/opencost-values.yaml
- repoURL: git@github.com:fortedigital/sturdy-adventure.git - repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
+1 -1
View File
@@ -23,7 +23,7 @@ spec:
valueFiles: valueFiles:
- $values/infra/values/prometheus-values.yaml - $values/infra/values/prometheus-values.yaml
- repoURL: git@github.com:fortedigital/sturdy-adventure.git - repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
+1 -1
View File
@@ -17,7 +17,7 @@ metadata:
spec: spec:
project: default project: default
source: source:
repoURL: git@github.com:fortedigital/sturdy-adventure.git repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
path: secrets path: secrets
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
+1 -1
View File
@@ -23,7 +23,7 @@ spec:
valueFiles: valueFiles:
- $values/infra/values/tempo-values.yaml - $values/infra/values/tempo-values.yaml
- repoURL: git@github.com:fortedigital/sturdy-adventure.git - repoURL: ssh://git@git.forteapps.net:2222/Forte/launchpad.git
targetRevision: HEAD targetRevision: HEAD
ref: values ref: values
+2 -2
View File
@@ -1,7 +1,7 @@
site_name: K8s Launchpad site_name: K8s Launchpad
site_description: Documentation for the GitOps-managed Kubernetes cluster site_description: Documentation for the GitOps-managed Kubernetes cluster
repo_url: https://github.com/fortedigital/sturdy-adventure repo_url: https://git.forteapps.net/Forte/launchpad
repo_name: fortedigital/sturdy-adventure repo_name: Forte/launchpad
theme: theme:
name: material name: material