update to Kubernetes 1.6
parent
c01f16bc3e
commit
ebe2845c17
|
@ -4,16 +4,7 @@ Now that each worker node is online we need to add routes to make sure that Pods
|
||||||
|
|
||||||
## Container Subnets
|
## Container Subnets
|
||||||
|
|
||||||
The IP addresses for each pod will be allocated from the `podCIDR` range assigned to each Kubernetes worker through the node registration process.
|
The IP addresses for each pod will be allocated from the `podCIDR` range assigned to each Kubernetes worker through the node registration process. The `podCIDR` will be allocated from the cluster cidr range as configured on the Kubernetes Controller Manager with the following flag:
|
||||||
|
|
||||||
During the worker setup process the following flags were set on the Kubelet to ensure each node obtained a `podCIDR` from the API server:
|
|
||||||
|
|
||||||
```
|
|
||||||
--configure-cbr0=true
|
|
||||||
--reconcile-cidr=true
|
|
||||||
```
|
|
||||||
|
|
||||||
The `podCIDR` will be allocated from the cluster cidr range as configured on the Kubernetes Controller Manager with the following flag:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
--cluster-cidr=10.200.0.0/16
|
--cluster-cidr=10.200.0.0/16
|
||||||
|
@ -53,21 +44,21 @@ Output:
|
||||||
|
|
||||||
```
|
```
|
||||||
gcloud compute routes create kubernetes-route-10-200-0-0-24 \
|
gcloud compute routes create kubernetes-route-10-200-0-0-24 \
|
||||||
--network kubernetes \
|
--network kubernetes-the-hard-way \
|
||||||
--next-hop-address 10.240.0.20 \
|
--next-hop-address 10.240.0.20 \
|
||||||
--destination-range 10.200.0.0/24
|
--destination-range 10.200.0.0/24
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
gcloud compute routes create kubernetes-route-10-200-1-0-24 \
|
gcloud compute routes create kubernetes-route-10-200-1-0-24 \
|
||||||
--network kubernetes \
|
--network kubernetes-the-hard-way \
|
||||||
--next-hop-address 10.240.0.21 \
|
--next-hop-address 10.240.0.21 \
|
||||||
--destination-range 10.200.1.0/24
|
--destination-range 10.200.1.0/24
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
gcloud compute routes create kubernetes-route-10-200-2-0-24 \
|
gcloud compute routes create kubernetes-route-10-200-2-0-24 \
|
||||||
--network kubernetes \
|
--network kubernetes-the-hard-way \
|
||||||
--next-hop-address 10.240.0.22 \
|
--next-hop-address 10.240.0.22 \
|
||||||
--destination-range 10.200.2.0/24
|
--destination-range 10.200.2.0/24
|
||||||
```
|
```
|
||||||
|
|
|
@ -24,6 +24,7 @@ kubectl create -f https://raw.githubusercontent.com/kelseyhightower/kubernetes-t
|
||||||
```
|
```
|
||||||
kubectl --namespace=kube-system get svc
|
kubectl --namespace=kube-system get svc
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
||||||
kube-dns 10.32.0.10 <none> 53/UDP,53/TCP 5s
|
kube-dns 10.32.0.10 <none> 53/UDP,53/TCP 5s
|
||||||
|
@ -40,8 +41,8 @@ kubectl create -f https://raw.githubusercontent.com/kelseyhightower/kubernetes-t
|
||||||
```
|
```
|
||||||
kubectl --namespace=kube-system get pods
|
kubectl --namespace=kube-system get pods
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
NAME READY STATUS RESTARTS AGE
|
NAME READY STATUS RESTARTS AGE
|
||||||
kube-dns-v19-965658604-c8g5d 3/3 Running 0 49s
|
kube-dns-321336704-6749s 4/4 Running 0 10s
|
||||||
kube-dns-v19-965658604-zwl3g 3/3 Running 0 49s
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue