-
Notifications
You must be signed in to change notification settings - Fork 7
/
test-rdma-pods.yaml
39 lines (39 loc) · 1.14 KB
/
test-rdma-pods.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apiVersion: v1
kind: Pod
metadata:
name: rdma-pod1
spec:
containers:
- name: mofed-test-ctr
image: mellanox/rping-test
securityContext:
capabilities:
add: ["IPC_LOCK"]
resources:
requests:
mellanox.com/shared_hca_rdma: 1
limits:
mellanox.com/shared_hca_rdma: 1
command: ["sleep", "infinity"]
# nodeName: aks-rdmanp-42009507-vmss000000 # For testing purposes if you want to force pods to be on same node in shared hca mode. Change to your node name or comment out if not needed.
# terminationGracePeriodSeconds: 5
---
apiVersion: v1
kind: Pod
metadata:
name: rdma-pod2
spec:
containers:
- name: mofed-test-ctr
image: mellanox/rping-test
securityContext:
capabilities:
add: ["IPC_LOCK"]
resources:
requests:
mellanox.com/shared_hca_rdma: 1
limits:
mellanox.com/shared_hca_rdma: 1
command: ["sleep", "infinity"]
# nodeName: aks-rdmanp-42009507-vmss000001 # For testing purposes if you want to force pods to be on same node in shared hca mode. Change to your node name or comment out if not needed.
# terminationGracePeriodSeconds: 5