35 lines
1.7 KiB
Markdown
35 lines
1.7 KiB
Markdown
# deploy/
|
|
|
|
How demo-vivek-11 reaches the lab. Everything starts from `score-lab.yaml`; nothing here is written
|
|
by hand.
|
|
|
|
```
|
|
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
|
|
```
|
|
|
|
| What | Where | Produced by |
|
|
|---|---|---|
|
|
| Deployment, Service, HTTPRoute, NetworkPolicy (`lab/`) | lab **spoke** | score-k8s with the platform's provisioners, delivered by Argo CD |
|
|
| Argo CD Application `team-demo/demo-vivek-11` | lab **hub** | the orchestrator, from the workload in `score-lab.yaml` |
|
|
| Public route (Backend + HTTPRoute) | lab **hub** | the orchestrator, from the `workload-ingress` resource |
|
|
|
|
## Workflow
|
|
|
|
**Build, Render and Deploy (lab)** runs three jobs for the dispatched commit:
|
|
|
|
1. **build** the image, tagged with the commit.
|
|
2. **render** `score-lab.yaml` into `lab/` and commit it. Argo CD then rolls it out.
|
|
3. **deploy** `score-lab.yaml` to the orchestrator, which keeps the Application and the public route
|
|
in place. It changes something only when the hostname, team or repository changes.
|
|
|
|
`lab/` is **generated**: never edit it. To change what is deployed, change `score-lab.yaml` and run
|
|
the workflow. The provisioners version is pinned in that workflow.
|
|
|
|
## What `score-lab.yaml` must carry
|
|
|
|
- `metadata.annotations["crucible.kyndryl.com/team"]`: the owning team (`demo`). The Application is
|
|
created in `team-demo`, and may deploy only to spoke namespaces named `demo-*`.
|
|
- `metadata.annotations["crucible.kyndryl.com/repo-url"]`: this repository.
|
|
- Readiness and liveness probes, required by the platform's policy check.
|