From 51024733bed915cdc303ae055d401af9d7c66f8b Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 21 Apr 2020 13:17:07 -0700 Subject: [PATCH 1/2] Fix rendering error It seems removing the tabbing in the codeblocks fix the rendering issues. Also added backticks to files to file names for emphasis. --- .../kubeadm/adding-windows-nodes.md | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md b/content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md index f6d58c87c4..6f551b0fb6 100644 --- a/content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md +++ b/content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md @@ -118,19 +118,20 @@ Once you have a Linux-based Kubernetes control-plane node you are ready to choos If you're using host-gateway use https://github.com/kubernetes-sigs/sig-windows-tools/releases/latest/download/flannel-host-gw.yml instead {{< /note >}} - {{< note >}} - If you're using a different interface rather than Ethernet (i.e. "Ethernet0 2") on the Windows nodes, you have to modify the line: +{{< note >}} +If you're using a different interface rather than Ethernet (i.e. "Ethernet0 2") on the Windows nodes, you have to modify the line: + +```powershell +wins cli process run --path /k/flannel/setup.exe --args "--mode=overlay --interface=Ethernet" +``` + +in the `flannel-host-gw.yml` or `flannel-overlay.yml` file and specify your interface accordingly. +{{< /note >}} - ```powershell - wins cli process run --path /k/flannel/setup.exe --args "--mode=overlay --interface=Ethernet" - ``` - in the flannel-host-gw.yml or flannel-overlay.yml file and specify your interface accordingly. - {{< /note >}} - - ```bash - # Example - curl -L https://github.com/kubernetes-sigs/sig-windows-tools/releases/latest/download/flannel-overlay.yml | sed 's/Ethernet/Ethernet0 2/g' | kubectl apply -f - - ``` +```bash +# Example +curl -L https://github.com/kubernetes-sigs/sig-windows-tools/releases/latest/download/flannel-overlay.yml | sed 's/Ethernet/Ethernet0 2/g' | kubectl apply -f - +``` ### Joining a Windows worker node From 28b79a65f8f665fef614d12dc9c32f7c49d69de0 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 21 Apr 2020 14:02:14 -0700 Subject: [PATCH 2/2] Reformat code block and note block The note block was mistabbed, and the code block was moved into the note because of its relevence to the note. --- .../administer-cluster/kubeadm/adding-windows-nodes.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md b/content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md index 6f551b0fb6..57e0f4fdf5 100644 --- a/content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md +++ b/content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md @@ -118,7 +118,7 @@ Once you have a Linux-based Kubernetes control-plane node you are ready to choos If you're using host-gateway use https://github.com/kubernetes-sigs/sig-windows-tools/releases/latest/download/flannel-host-gw.yml instead {{< /note >}} -{{< note >}} + {{< note >}} If you're using a different interface rather than Ethernet (i.e. "Ethernet0 2") on the Windows nodes, you have to modify the line: ```powershell @@ -126,12 +126,13 @@ wins cli process run --path /k/flannel/setup.exe --args "--mode=overlay --interf ``` in the `flannel-host-gw.yml` or `flannel-overlay.yml` file and specify your interface accordingly. -{{< /note >}} - + ```bash # Example curl -L https://github.com/kubernetes-sigs/sig-windows-tools/releases/latest/download/flannel-overlay.yml | sed 's/Ethernet/Ethernet0 2/g' | kubectl apply -f - ``` + {{< /note >}} + ### Joining a Windows worker node