Adopting teams destination based provisioning
This commit is contained in:
@@ -17,17 +17,19 @@ browser ─► hub pe-gatewayapi (demo-vivek-11.apps.lab…) ─► Private Link
|
||||
## 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`.
|
||||
The lab uses argocd-agent's **destination-based mapping**, and this app belongs to team **demo**.
|
||||
|
||||
- It lives in namespace **`team-demo`** on the hub: team demo's namespace. The platform creates it.
|
||||
- `project: team-demo`: the platform's AppProject for the team. It accepts Applications only from
|
||||
`team-demo`, and deploys only to spoke namespaces named **`demo-*`** (this app's is `demo-vivek-11`).
|
||||
- `destination.name: apps-lab`: the agent to deploy to, and the routing key. **Never**
|
||||
`destination.server`, which resolves to the hub itself.
|
||||
|
||||
## Image
|
||||
|
||||
|
||||
Reference in New Issue
Block a user