mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Start CSI proxy as service
Now CSI proxy can support starting as service. Update node startup script to create and start it as service
This commit is contained in:
parent
4db3a096ce
commit
28ab3488b6
@ -417,11 +417,13 @@ function DownloadAndInstall-CSIProxyBinaries {
|
||||
}
|
||||
}
|
||||
|
||||
# TODO(jingxu97): Make csi-proxy.exe as a service similar to kubelet.exe
|
||||
function Start-CSIProxy {
|
||||
if (Test-IsTestCluster $kube_env) {
|
||||
Log-Output 'Starting CSI Proxy'
|
||||
Start-Process "${env:NODE_DIR}\csi-proxy.exe"
|
||||
Log-Output "Creating CSI Proxy Service"
|
||||
& sc.exe create csiproxy binPath= "${env:NODE_DIR}\csi-proxy.exe --windows-service"
|
||||
& sc.exe failure csiproxy reset= 0 actions= restart/10000
|
||||
Log-Output "Starting CSI Proxy Service"
|
||||
& sc.exe start csiproxy
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user