From a8b7c759df68e43a6038260c474fbb9115d15924 Mon Sep 17 00:00:00 2001 From: Steffen Butzer Date: Fri, 8 Feb 2019 17:33:01 +0100 Subject: [PATCH] windows: Add windows prefix for windows services (#12377) The binaries themself indicate: ``` --windows-service Enable Windows Service Control Manager API integration ``` It also doesn't appear to have changed, since it's like this since this landed: https://github.com/kubernetes/kubernetes/commit/4ea363d98e9cf1fb7c83da3fe6d7db95a904cae3#diff-34a9920a4db69d1542b66bcb6fe4ac1eR39 Possibly an oversight after changing it before the merge. This ensures the documentation is consistent with the code and help outputted by kubernetes binaries again. /sig windows --- content/en/docs/getting-started-guides/windows/_index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/docs/getting-started-guides/windows/_index.md b/content/en/docs/getting-started-guides/windows/_index.md index 71107fe827..5d0ca0d122 100644 --- a/content/en/docs/getting-started-guides/windows/_index.md +++ b/content/en/docs/getting-started-guides/windows/_index.md @@ -354,13 +354,13 @@ This means that you can now register them as Windows services via `sc` command. To create the service: ``` -PS > sc.exe create binPath= " --service " -CMD > sc create binPath= " --service " +PS > sc.exe create binPath= " --windows-service " +CMD > sc create binPath= " --windows-service " ``` 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' " -CMD > sc create kubelet binPath= "C:\kubelet.exe --service --hostname-override 'minion' " +PS > sc.exe create kubelet binPath= "C:\kubelet.exe --windows-service --hostname-override 'minion' " +CMD > sc create kubelet binPath= "C:\kubelet.exe --windows-service --hostname-override 'minion' " ``` To start the service: ```