/kube-dc:manage-storagefrom kube-dc
Creates ObjectBucketClaims for S3-compatible buckets, DataVolumes for VM disks, and PersistentVolumeClaims for Project workloads in Kube-DC.
Ships in kube-dc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
{organization}-{project}.apiVersion: objectbucket.io/v1alpha1
kind: ObjectBucketClaim
metadata:
name: "{bucket-name}"
namespace: "{backing-namespace}"
labels:
kube-dc.com/organization: "{organization}"
spec:
bucketName: "{backing-namespace}-{bucket-name}"
storageClassName: "{bucket-storage-class}"
The Organization label is required for correct dashboard attribution, Organization bucket totals, and usage reporting on manually created claims. The underlying OBC provisioner may still bind an unlabeled claim, but Kube-DC cannot attribute it correctly.
A bound claim creates a same-name Secret and ConfigMap in the Project's backing namespace:
| Resource | Important keys |
|---|---|
| Secret | AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY |
| ConfigMap | BUCKET_ENDPOINT, BUCKET_NAME, BUCKET_REGION |
These are per-bucket credentials. Use them only for that bucket. Organization account keys do not automatically grant data access to all ObjectBucketClaims.
envFrom:
- secretRef:
name: "{bucket-name}"
- configMapRef:
name: "{bucket-name}"
Use the HTTPS URL in BUCKET_ENDPOINT from pods and workstations. If the
ConfigMap has no BUCKET_ENDPOINT, set it to the S3 endpoint shown in the
bucket details. To run the AWS CLI from a workstation:
export AWS_ACCESS_KEY_ID="$(
kubectl get secret {bucket-name} -n {backing-namespace} \
-o jsonpath='{.data.AWS_ACCESS_KEY_ID}' | base64 -d
)"
export AWS_SECRET_ACCESS_KEY="$(
kubectl get secret {bucket-name} -n {backing-namespace} \
-o jsonpath='{.data.AWS_SECRET_ACCESS_KEY}' | base64 -d
)"
export BUCKET_NAME="$(
kubectl get configmap {bucket-name} -n {backing-namespace} \
-o jsonpath='{.data.BUCKET_NAME}'
)"
export BUCKET_ENDPOINT="$(
kubectl get configmap {bucket-name} -n {backing-namespace} \
-o jsonpath='{.data.BUCKET_ENDPOINT}'
)"
aws --endpoint-url "$BUCKET_ENDPOINT" s3 ls "s3://$BUCKET_NAME/"
Do not print the Secret values.
On an installation that offers SSE-S3, use Bucket → Access → Encrypt new uploads by default for a bound tenant bucket. The default applies to future uploads. Reads of existing encrypted objects continue after you clear it.
For automation, use the bucket's HTTPS endpoint and per-bucket credentials
to read its current rule with aws s3api get-bucket-encryption. With the
user's requested change, use put-bucket-encryption with
SSEAlgorithm: AES256, or use delete-bucket-encryption to clear the
default. Preserve an existing custom rule or SSE-KMS configuration unless the
user explicitly requests a change to it. Verify the default by uploading a
disposable object without an encryption header and checking
ServerSideEncryption with head-object.
For declarative configuration on providers that enable it, add the
storage.kube-dc.com/bucket-encryption annotation to the bucket claim in
Kubernetes YAML. Use "AES256" to enable the default or "off" to clear it.
Wait for the BucketEncryptionApplied event before uploading. The controller
applies the setting when the claim binds or when the annotation changes.
Declarative bucket encryption example
Ask the platform which classes suit the volume instead of guessing from names:
GET /api/create-vm/{backing-namespace}/storageclasses?purpose={purpose}
Authorization: Bearer {kube-dc-jwt}
| Creating | purpose |
|---|---|
| VM boot disk | vm-root |
| VM data disk (DataVolume) | vm-data |
| Data disk of a live-migratable VM | vm-migratable |
| PersistentVolumeClaim | volume |
| Restore from a VolumeSnapshot, or CSI clone of a PVC | restore, plus sourceClass={source-class} |
Each entry has value (the class name), modes (supported access and volume
mode pairs), features (snapshot, live-migration, expand, ...) and
nodeLocal. Use a listed class and one of its modes pairs.
The console and the Kube-DC API refuse unsuitable classes with 422. A manifest
applied with kubectl is not checked that way, so follow the same rules:
scratch-* class or a class
without dynamic provisioning for a volume. The claim never becomes usable.kubectl get pvc {source} -n {backing-namespace} -o jsonpath='{.spec.storageClassName}'.storageClassName empty means the cluster default class, which is
often node-local.Use a class from purpose=vm-data (or vm-root for a boot disk). Prefer a
digest-pinned registry image from the live OS image catalog:
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
name: "{disk-name}"
namespace: "{backing-namespace}"
spec:
source:
registry:
url: "docker://{registry-image}@sha256:{digest}"
pullMethod: node
pvc:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "{size}"
storageClassName: "{vm-storage-class}"
Use an HTTP source for provider-supported custom images or installation media:
spec:
source:
http:
url: "{image-url}"
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "{size}"
storageClassName: "{vm-storage-class}"
Create a blank data disk with source.blank: {}. See
datavolume-template.yaml for all three shapes.
Attach a DataVolume to a VM by referencing it under both
domain.devices.disks and volumes[].dataVolume.name.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: "{claim-name}"
namespace: "{backing-namespace}"
spec:
accessModes:
- ReadWriteOnce
storageClassName: "{project-storage-class}"
resources:
requests:
storage: "{size}"
Use a class from purpose=volume and an access mode from its modes. Do not
assume ReadWriteMany or live migration support from a class name alone.
# Bucket and generated connection resources
kubectl get obc {bucket-name} -n {backing-namespace}
kubectl get secret,configmap {bucket-name} -n {backing-namespace}
# VM disk
kubectl get dv {disk-name} -n {backing-namespace} \
-o jsonpath='{.status.phase}{"\n"}'
kubectl get pvc {disk-name} -n {backing-namespace}
# Container claim
kubectl get pvc {claim-name} -n {backing-namespace}
Expected states are Bound for ObjectBucketClaim/PVC and Succeeded for a
completed DataVolume import. If a resource remains Pending, inspect its events
and confirm quota, class availability, image access, and placement.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kube-dc/kube-dc-public --plugin kube-dc18 skills in this plugin
/check-quotaCheck Kube-DC Organization and Project quota before creating workloads, VMs, databases, Managed Clusters, public IPs, or storage./create-databaseCreate a managed database (PostgreSQL, MySQL, MariaDB, ClickHouse) or Valkey cache in a Kube-DC Project as a ManagedService, deliver its credential to workloads with a ServiceBinding Secret, and prepare backup and restore workflows./create-projectCreate a Kube-DC Project inside an existing Organization. Covers network selection, quota preflight, the Project manifest, and readiness verification.Other plugins' skills for the same job