Skip to content

Commit 56cebaf

Browse files
Update vf-config.yaml
1 parent 1b7f2d4 commit 56cebaf

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

manifests/vf-config.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,18 @@ spec:
1717
hostNetwork: true
1818
tolerations: [{ operator: "Exists" }]
1919
terminationGracePeriodSeconds: 0
20-
nodeSelector:
21-
node.kubernetes.io/instance-type: BM.GPU.H100.8
20+
affinity:
21+
nodeAffinity:
22+
requiredDuringSchedulingIgnoredDuringExecution:
23+
nodeSelectorTerms:
24+
- matchExpressions:
25+
- key: node.kubernetes.io/instance-type
26+
operator: In
27+
values:
28+
- BM.GPU.A100-v2.8
29+
- BM.GPU.B4.8
30+
- BM.GPU4.8
31+
- BM.GPU.H100.8
2232
volumes: [{ name: root, hostPath: { path: "/" } }]
2333
containers:
2434
- name: vf-config
@@ -41,13 +51,13 @@ spec:
4151
sleep 15 ; continue ;
4252
done
4353
44-
snap stop oracle-cloud-agent || true
54+
service stop oracle-cloud-agent || true
4555
echo 0 | tee /sys/class/net/rdma*/device/sriov_numvfs || true
4656
sleep 30
4757
rdma system show
4858
oci-vf-config; sleep 2
4959
echo 4220 | tee /sys/class/net/rdma*/mtu || true
50-
snap start oracle-cloud-agent || echo "Error restarting" >&2
60+
service start oracle-cloud-agent || echo "Error restarting" >&2
5161
crictl rmp -f "\$(crictl pods | grep sriov-device | awk '{print \$1}' | tail -1)" || true
5262
EOF
5363
while :; do { [[ $exit ]] && break; }; sleep 1; done # Sleep forever, exit gracefully

0 commit comments

Comments
 (0)