Point Argo CD at Gitea and configure storage workers
This commit is contained in:
+18
-19
@@ -54,30 +54,29 @@ already doing.
|
||||
## Every Application needs its own `repoURL`
|
||||
|
||||
Applications don't inherit `repoURL` from whatever applied them — each one
|
||||
declares its own source repo independently. That means the placeholder
|
||||
`https://github.com/YOUR_GITHUB_USERNAME/...` needs fixing in *every* file
|
||||
that has it, not just the one you apply by hand:
|
||||
declares its own source repo independently. All four initial Applications
|
||||
therefore point explicitly at this cluster's public Gitea repository:
|
||||
`https://tea.ahmza.com/ahmza/k8s-starter-pack.git`. Anonymous read access is
|
||||
required because Argo CD clones it from inside the cluster without a stored
|
||||
Git credential.
|
||||
|
||||
Verify every source before applying the app-of-apps:
|
||||
|
||||
```sh
|
||||
grep -rl YOUR_GITHUB_USERNAME .
|
||||
grep -R "repoURL:" argocd/app-of-apps apps/*.yaml
|
||||
```
|
||||
|
||||
You should see four files: `argocd/app-of-apps/app-of-apps.yaml`,
|
||||
`apps/demo.yaml`, `apps/metallb.yaml`, and `apps/longhorn.yaml`. Edit
|
||||
`spec.source.repoURL` in each to point at your fork.
|
||||
The command should show the same Gitea URL in
|
||||
`argocd/app-of-apps/app-of-apps.yaml`, `apps/demo.yaml`, `apps/metallb.yaml`,
|
||||
and `apps/longhorn.yaml`.
|
||||
|
||||
## Steps
|
||||
|
||||
1. Fix `repoURL` in all four files (above).
|
||||
2. Commit and push — this part matters more than it looks: the
|
||||
app-of-apps reads `apps/demo.yaml`, `apps/metallb.yaml`, and
|
||||
`apps/longhorn.yaml` *from Git*, not from your local edits, so they
|
||||
have to be pushed before you apply anything.
|
||||
```sh
|
||||
git add argocd/app-of-apps/app-of-apps.yaml apps/demo.yaml apps/metallb.yaml apps/longhorn.yaml
|
||||
git commit -m "Point Applications at my fork"
|
||||
git push
|
||||
```
|
||||
1. Verify `repoURL` in all four files (above) and confirm anonymous access
|
||||
with `git ls-remote https://tea.ahmza.com/ahmza/k8s-starter-pack.git HEAD`.
|
||||
2. Commit and push any pending configuration first. This matters more than it
|
||||
looks: the app-of-apps reads its children *from Git*, not from your local
|
||||
checkout, so local-only edits cannot affect the cluster.
|
||||
3. Apply the app-of-apps — the one manifest you apply by hand:
|
||||
```sh
|
||||
kubectl apply -f argocd/app-of-apps/app-of-apps.yaml
|
||||
@@ -112,8 +111,8 @@ end to end; you just can't see the demo app in a browser yet.
|
||||
|
||||
## Checklist
|
||||
|
||||
- [ ] `repoURL` fixed in all four files listed above
|
||||
- [ ] Fix committed and pushed
|
||||
- [ ] The public Gitea `repoURL` is present in all four files listed above
|
||||
- [ ] Anonymous `git ls-remote` succeeds and all pending changes are pushed
|
||||
- [ ] `app-of-apps` applied and shows `Synced`/`Healthy`
|
||||
- [ ] `demo`, `metallb`, and `longhorn` Applications appeared
|
||||
automatically, all `Synced`/`Healthy`
|
||||
|
||||
+5
-5
@@ -25,11 +25,11 @@ on every node.
|
||||
|
||||
| Address | What | Port(s) | URL(s) |
|
||||
|---|---|---|---|
|
||||
| `10.10.10.200` | `talos-m4x-o87` — control plane (Raspberry Pi 4) | 6443, 50000 | `https://10.10.10.200:6443`, `https://10.10.10.200:50000` |
|
||||
| `10.10.10.201` | `talos-woj-ep6` — control plane (Raspberry Pi 4) | 6443, 50000 | `https://10.10.10.201:6443`, `https://10.10.10.201:50000` |
|
||||
| `10.10.10.202` | `talos-s2g-djt` — control plane (Raspberry Pi 4) | 6443, 50000 | `https://10.10.10.202:6443`, `https://10.10.10.202:50000` |
|
||||
| `10.10.10.203` | `worker01` — worker (Proxmox VM) | 50000 | `https://10.10.10.203:50000` |
|
||||
| `10.10.10.204` | `worker02` — worker (Proxmox VM) | 50000 | `https://10.10.10.204:50000` |
|
||||
| `10.10.10.200` | `talos-455-i3b` — control plane (Raspberry Pi 4) | 6443, 50000 | `https://10.10.10.200:6443`, `https://10.10.10.200:50000` |
|
||||
| `10.10.10.201` | `talos-9xy-iuk` — control plane (Raspberry Pi 4) | 6443, 50000 | `https://10.10.10.201:6443`, `https://10.10.10.201:50000` |
|
||||
| `10.10.10.202` | `talos-k1b-7j5` — control plane (Raspberry Pi 4) | 6443, 50000 | `https://10.10.10.202:6443`, `https://10.10.10.202:50000` |
|
||||
| `10.10.10.203` | `talos-rss-v5l` — worker01 (Proxmox VM on Gimli) | 50000 | `https://10.10.10.203:50000` |
|
||||
| `10.10.10.204` | `talos-vba-ood` — worker02 (Proxmox VM on Titus) | 50000 | `https://10.10.10.204:50000` |
|
||||
| `10.10.10.210` | Cluster VIP (use this one, not a node's own address) | 6443 | `https://10.10.10.210:6443` |
|
||||
|
||||
## MetalLB pool
|
||||
|
||||
Reference in New Issue
Block a user