File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments