Merge pull request #1936 from ahmetalpbalkan/patch-8

Add empty space before code blocks to render
reviewable/pr1916/r1^2
Jared 2016-12-13 14:58:33 -08:00 committed by GitHub
commit 6101aec4a0
1 changed files with 4 additions and 0 deletions

View File

@ -83,12 +83,14 @@ The below example setup assumes one Linux and two Windows Server 2016 nodes and
| Win02 | `<IP of Win02 host>` | 192.168.2.0/24 |
**Lin01**
```
ip route add 192.168.1.0/24 via <IP of Win01 host>
ip route add 192.168.2.0/24 via <IP of Win02 host>
```
**Win01**
```
docker network create -d transparent --gateway 192.168.1.1 --subnet 192.168.1.0/24 <network name>
# A bridge is created with Adapter name "vEthernet (HNSTransparent)". Set its IP address to transparent network gateway
@ -98,6 +100,7 @@ route add 192.168.2.0 mask 255.255.255.0 192.168.2.1 if <Interface Id of the Rou
```
**Win02**
```
docker network create -d transparent --gateway 192.168.2.1 --subnet 192.168.2.0/24 <network name>
# A bridge is created with Adapter name "vEthernet (HNSTransparent)". Set its IP address to transparent network gateway
@ -132,6 +135,7 @@ Run the following in a PowerShell window with administrative privileges. Be awar
## Scheduling Pods on Windows
Because your cluster has both Linux and Windows nodes, you must explictly set the nodeSelector constraint to be able to schedule Pods to Windows nodes. You must set nodeSelector with the label beta.kubernetes.io/os to the value windows; see the following example:
```
{
"apiVersion": "v1",