diff options
Diffstat (limited to 'containers/rocky-ssh-gpu-deployment.yaml')
| -rw-r--r-- | containers/rocky-ssh-gpu-deployment.yaml | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/containers/rocky-ssh-gpu-deployment.yaml b/containers/rocky-ssh-gpu-deployment.yaml deleted file mode 100644 index 062ccae..0000000 --- a/containers/rocky-ssh-gpu-deployment.yaml +++ /dev/null | |||
| @@ -1,69 +0,0 @@ | |||
| 1 | apiVersion: apps/v1 | ||
| 2 | kind: StatefulSet | ||
| 3 | metadata: | ||
| 4 | name: rocky-dev-gpu | ||
| 5 | labels: | ||
| 6 | app: rocky-dev-gpu | ||
| 7 | spec: | ||
| 8 | serviceName: rocky-dev-gpu-svc | ||
| 9 | replicas: 2 | ||
| 10 | selector: | ||
| 11 | matchLabels: | ||
| 12 | app: rocky-dev-gpu | ||
| 13 | template: | ||
| 14 | metadata: | ||
| 15 | labels: | ||
| 16 | app: rocky-dev-gpu | ||
| 17 | spec: | ||
| 18 | containers: | ||
| 19 | - name: rocky-dev-gpu | ||
| 20 | image: rocky_dev_gpu:latest | ||
| 21 | imagePullPolicy: IfNotPresent # Use local image | ||
| 22 | ports: | ||
| 23 | - containerPort: 22 | ||
| 24 | name: ssh | ||
| 25 | securityContext: | ||
| 26 | privileged: true | ||
| 27 | resources: | ||
| 28 | limits: | ||
| 29 | nvidia.com/gpu: 1 # Request 1 GPU per pod | ||
| 30 | requests: | ||
| 31 | nvidia.com/gpu: 1 | ||
| 32 | env: | ||
| 33 | - name: NVIDIA_VISIBLE_DEVICES | ||
| 34 | value: "all" | ||
| 35 | - name: NVIDIA_DRIVER_CAPABILITIES | ||
| 36 | value: "compute,utility" | ||
| 37 | volumeMounts: | ||
| 38 | - name: workspace | ||
| 39 | mountPath: /workspace | ||
| 40 | livenessProbe: | ||
| 41 | tcpSocket: | ||
| 42 | port: 22 | ||
| 43 | initialDelaySeconds: 30 | ||
| 44 | periodSeconds: 30 | ||
| 45 | readinessProbe: | ||
| 46 | tcpSocket: | ||
| 47 | port: 22 | ||
| 48 | initialDelaySeconds: 5 | ||
| 49 | periodSeconds: 10 | ||
| 50 | volumeClaimTemplates: | ||
| 51 | - metadata: | ||
| 52 | name: workspace | ||
| 53 | spec: | ||
| 54 | accessModes: [ "ReadWriteOnce" ] | ||
| 55 | resources: | ||
| 56 | requests: | ||
| 57 | storage: 10Gi | ||
| 58 | --- | ||
| 59 | apiVersion: v1 | ||
| 60 | kind: Service | ||
| 61 | metadata: | ||
| 62 | name: rocky-dev-gpu-svc | ||
| 63 | spec: | ||
| 64 | clusterIP: None | ||
| 65 | selector: | ||
| 66 | app: rocky-dev-gpu | ||
| 67 | ports: | ||
| 68 | - port: 22 | ||
| 69 | targetPort: 22 \ No newline at end of file | ||
