Skip to content

Instantly share code, notes, and snippets.

@sergeygalkin
Created May 26, 2022 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergeygalkin/17fffc4cea5dce6fb58ca88f1f6f8650 to your computer and use it in GitHub Desktop.
Save sergeygalkin/17fffc4cea5dce6fb58ca88f1f6f8650 to your computer and use it in GitHub Desktop.
ovh simple gpu node
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: csi-pvc-cinderplugin
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: csi-cinder-high-speed
---
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- image: nginx
resources:
limits:
nvidia.com/gpu: 1
imagePullPolicy: IfNotPresent
name: nginx
ports:
- containerPort: 80
protocol: TCP
volumeMounts:
- mountPath: /var/lib/www/html
name: csi-data-cinderplugin
volumes:
- name: csi-data-cinderplugin
persistentVolumeClaim:
claimName: csi-pvc-cinderplugin
readOnly: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment