ArgoCD Deployment
This commit is contained in:
35
deploy/README.md
Normal file
35
deploy/README.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# deploy/
|
||||
|
||||
Argo CD delivery of demo-vivek-11 to the lab: the hub's Argo CD pushes it to the `apps-lab` spoke
|
||||
through the argocd-agent, and the hub's public kgateway Gateway forwards to it over Private Link.
|
||||
|
||||
```
|
||||
browser ─► hub pe-gatewayapi (demo-vivek-11.apps.lab…) ─► Private Link ─► spoke pe-gatewayapi-int
|
||||
(demo-vivek-11.int.apps.lab…, port 80) ─► Service demo-vivek-11 ─► pod :8080
|
||||
```
|
||||
|
||||
| Folder | Applied to | By |
|
||||
|---|---|---|
|
||||
| `argocd/` | lab **hub** | `kubectl apply` once |
|
||||
| `hub/` | lab **hub** | `kubectl apply` once |
|
||||
| `manifests/` | lab **spoke** | Argo CD, from this repo |
|
||||
|
||||
## Apply
|
||||
|
||||
```bash
|
||||
khub apply -f deploy/argocd/appproject.yaml
|
||||
khub apply -f deploy/argocd/application.yaml
|
||||
khub apply -f deploy/hub/remote-route.yaml
|
||||
```
|
||||
|
||||
## Rules the Application must keep
|
||||
|
||||
- It lives in namespace **`apps-lab`** on the hub: the agent's namespace.
|
||||
- `destination.name: apps-lab`, **never** `destination.server`, which resolves to the hub itself.
|
||||
- `project: apps-lab`. The `default` project has no `sourceNamespaces`, so it refuses an
|
||||
Application in `apps-lab`.
|
||||
|
||||
## Image
|
||||
|
||||
`manifests/kustomization.yaml` pins the tag. Set it to the commit the lab build pushed, and commit:
|
||||
Argo CD deploys what is in Git.
|
||||
Reference in New Issue
Block a user