• Alin-Gheorghe Balutoiu's avatar
    Add support for binaries to run as Windows services · 4ea363d9
    Alin-Gheorghe Balutoiu authored
    This patch adds support for kubernetes to integrate
    with Windows SCM.
    
    As a first step both `kubelet` and `kube-proxy` can be registered as a service.
    
    To create the service:
    PS > sc.exe create <component_name> binPath= "<path_to_binary> --service <other_args>"
    CMD > sc create <component_name> binPath= "<path_to_binary> --service <other_args>"
    
    Please note that if the arguments contain spaces, it must be escaped.
    Example:
    PS > sc.exe create kubelet binPath= "C:\kubelet.exe --service --hostname-override 'minion' <other_args>"
    CMD > sc create kubelet binPath= "C:\kubelet.exe --service --hostname-override 'minion' <other_args>"
    
    Example to start the service:
    PS > Start-Service kubelet; Start-Service kube-proxy
    CMD > net start kubelet && net start kube-proxy
    
    Example to stop the service:
    PS > Stop-Service kubelet (-Force); Stop-Service kube-proxy (-Force)
    CMD > net stop kubelet && net stop kube-proxy
    
    Example to query the service:
    PS > Get-Service kubelet; Get-Service kube-proxy;
    CMD > sc.exe queryex kubelet && sc qc kubelet && sc.exe queryex kube-proxy && sc.exe qc kube-proxy
    Signed-off-by: 's avatarAlin Balutoiu <abalutoiu@cloudbasesolutions.com>
    Signed-off-by: 's avatarAlin Gabriel Serdean <aserdean@ovn.org>
    Co-authored-by: 's avatarAlin Gabriel Serdean <aserdean@ovn.org>
    4ea363d9
Name
Last commit
Last update
..
api Loading commit data...
apis Loading commit data...
auth Loading commit data...
capabilities Loading commit data...
client Loading commit data...
cloudprovider Loading commit data...
controller Loading commit data...
credentialprovider Loading commit data...
features Loading commit data...
fieldpath Loading commit data...
generated Loading commit data...
kubeapiserver Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
master Loading commit data...
printers Loading commit data...
probe Loading commit data...
proxy Loading commit data...
quota Loading commit data...
registry Loading commit data...
routes Loading commit data...
scheduler Loading commit data...
security Loading commit data...
securitycontext Loading commit data...
serviceaccount Loading commit data...
ssh Loading commit data...
util Loading commit data...
version Loading commit data...
volume Loading commit data...
watch/json Loading commit data...
windows/service Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...