feat(devcontainer): add k8s pod template for DevPod
Mounts dev-home PVC (50Gi) and training-data PVC (read-only). Targets gpu-dev node pool. Resource requests: 4 CPU / 16Gi, limits: 14 CPU / 56Gi. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
41
.devcontainer/pod-template.yaml
Normal file
41
.devcontainer/pod-template.yaml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# DevPod pod template — merged with DevPod's generated pod spec
|
||||||
|
# Ref: https://github.com/loft-sh/devpod-provider-kubernetes
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: devpod
|
||||||
|
app.kubernetes.io/part-of: foxhunt
|
||||||
|
app.kubernetes.io/component: dev-environment
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
k8s.scaleway.com/pool-name: gpu-dev
|
||||||
|
containers:
|
||||||
|
- name: devpod
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "4000m"
|
||||||
|
memory: "16Gi"
|
||||||
|
limits:
|
||||||
|
cpu: "14000m"
|
||||||
|
memory: "56Gi"
|
||||||
|
volumeMounts:
|
||||||
|
- name: dev-home
|
||||||
|
mountPath: /home/dev
|
||||||
|
- name: training-data
|
||||||
|
mountPath: /data/training
|
||||||
|
readOnly: true
|
||||||
|
initContainers:
|
||||||
|
- name: init-home
|
||||||
|
image: busybox:latest
|
||||||
|
command: ["sh", "-c", "chown -R 1000:1000 /home/dev"]
|
||||||
|
volumeMounts:
|
||||||
|
- name: dev-home
|
||||||
|
mountPath: /home/dev
|
||||||
|
volumes:
|
||||||
|
- name: dev-home
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: dev-home-pvc
|
||||||
|
- name: training-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: training-data-pvc
|
||||||
Reference in New Issue
Block a user