Skip to content

Kubernetes: add support for volumes#3781

Merged
un-def merged 4 commits intomasterfrom
issue_3757_k8s_network_volumes
Apr 16, 2026
Merged

Kubernetes: add support for volumes#3781
un-def merged 4 commits intomasterfrom
issue_3757_k8s_network_volumes

Conversation

@un-def
Copy link
Copy Markdown
Collaborator

@un-def un-def commented Apr 15, 2026

Added support for backend: kubernetes volumes, which are mapped to PersistentVolumeClaims. An existing PVC can be reused with claim_name field, otherwise a new PVC is created, similarly to volume_id field logic in other backends.

VolumeConfiguration is now a tagged union with backend-specific subclasses.

Kubernetes backend DUMMY_REGION "-" was changed to "" (an empty string), which was retrofitted to indicate "region is not applicable (for this backend)". CLI now hides corresponding fields if region = "".

Closes: #3757

@un-def un-def requested a review from r4victor April 15, 2026 09:43
Comment thread src/dstack/_internal/core/models/configurations.py Outdated
Comment thread src/dstack/_internal/core/models/configurations.py Outdated
Comment thread src/dstack/_internal/core/models/configurations.py Outdated
Comment thread src/dstack/_internal/core/backends/kubernetes/compute.py
Comment thread src/dstack/_internal/core/models/configurations.py Outdated
@un-def un-def merged commit 0a1eb67 into master Apr 16, 2026
28 checks passed
@un-def un-def deleted the issue_3757_k8s_network_volumes branch April 16, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Kubernetes: volumes support

2 participants