Add code-server package manifests

This commit is contained in:
2026-06-03 01:08:06 +00:00
parent cb6cf58229
commit d85dcb5c11
9 changed files with 301 additions and 59 deletions

View File

@ -1,17 +1,22 @@
# code-server
The base deploys code-server from `harbor.bwgdi.com/library/earth2studio-demo:v6`
with a Service and password Secret reference.
`base/` and `components/` stay plain Kustomize YAML for reusable validation and
composition.
The Secret is generated by the instance overlay. Workspace storage is mounted
from top-level WorkloadClaim `storage`, and exposure is rendered from top-level
`exposure`. Do not commit real passwords or tokens to this catalog.
The OCDP self-service code-server flow is Helm-backed now:
The WorkloadTemplate exposes storage intent (`temporary`, `retained`,
`existing`) and exposure intent (`internal`, `external`) as claim-time choices.
Workspace storage defaults to retained. The template also mounts a hidden
retained `weight` StorageClass PVC at `/models` for model weights; this
StorageClass detail is platform-owned and is not exposed as a user parameter.
```text
Helm chart
-> operator helm template
-> packages/code-server/presets/k3s-hami
-> final Kubernetes resources
```
The Deployment keeps HAMi resource keys in `resources.limits` at all times:
`nvidia.com/gpu` for GPU count and `nvidia.com/gpumem` for GPU memory in MiB.
The environment-specific preset lives in
`packages/code-server/presets/k3s-hami`. That preset owns the platform image
`harbor.bwgdi.com/library/earth2studio-demo:v6`, registry pull secret, HAMi
scheduler, Service shape, code-server auth mode, and GPU resource keys.
Users only fill CPU, memory, GPU count, and GPU memory. See
`packages/code-server/presets/k3s-hami/userInputs.yaml` for the values schema
that the console should render into the WorkloadClaim form.

View File

@ -56,9 +56,9 @@ spec:
resources:
requests:
cpu: "500m"
memory: 1Gi
memory: 1024Mi
limits:
cpu: "2"
memory: 4Gi
cpu: "2000m"
memory: 4096Mi
nvidia.com/gpu: "1"
nvidia.com/gpumem: "8192"