25 lines
591 B
YAML
25 lines
591 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: demo-pod-monitoring-1
|
|
annotations:
|
|
k8s.v1.cni.cncf.io/networks: hostdevice-net
|
|
spec:
|
|
nodeSelector:
|
|
# Note: Replace hostname or remove selector altogether
|
|
kubernetes.io/hostname: nhn-aideveloper-d40ce770
|
|
restartPolicy: OnFailure
|
|
containers:
|
|
- image: mellanox/cuda-perftest
|
|
name: rdma-gpu-test-ctr
|
|
securityContext:
|
|
capabilities:
|
|
add: [ "IPC_LOCK" ]
|
|
resources:
|
|
limits:
|
|
nvidia.com/gpu: 8
|
|
nvidia.com/hostdev: 8
|
|
requests:
|
|
nvidia.com/gpu: 8
|
|
nvidia.com/hostdev: 8
|