kubernetes/cmd/kube-proxy/app
Alin-Gheorghe Balutoiu 4ea363d98e Add support for binaries to run as Windows services
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: Alin Balutoiu <abalutoiu@cloudbasesolutions.com>
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
Co-authored-by: Alin Gabriel Serdean <aserdean@ovn.org>
2018-03-07 00:51:36 +01:00
..
BUILD Add support for binaries to run as Windows services 2018-03-07 00:51:36 +01:00
conntrack.go Skip resize of nf_conntrack/parameters/hashsize if not necessary 2017-04-25 16:08:30 +02:00
init_others.go Add support for binaries to run as Windows services 2018-03-07 00:51:36 +01:00
init_windows.go Add support for binaries to run as Windows services 2018-03-07 00:51:36 +01:00
server_others_test.go Move linux-only getProxyMode tests to a linux-only file. 2018-02-27 13:53:32 -08:00
server_others.go add nodeport-addresses flag for kube-proxy 2018-02-26 23:48:46 +08:00
server_test.go Move linux-only getProxyMode tests to a linux-only file. 2018-02-27 13:53:32 -08:00
server_windows.go Fix NewProxyServer 2017-11-22 14:17:10 -08:00
server.go Add support for binaries to run as Windows services 2018-03-07 00:51:36 +01:00