From ebe2845c1759df722c86d36a771fc6f879e5af6b Mon Sep 17 00:00:00 2001 From: Kelsey Hightower Date: Sat, 25 Mar 2017 11:50:26 -0700 Subject: [PATCH] update to Kubernetes 1.6 --- docs/08-network.md | 17 ++++------------- docs/09-dns-addon.md | 7 ++++--- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/docs/08-network.md b/docs/08-network.md index 5b99809..129ba11 100644 --- a/docs/08-network.md +++ b/docs/08-network.md @@ -4,16 +4,7 @@ Now that each worker node is online we need to add routes to make sure that Pods ## 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. - -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: +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: ``` --cluster-cidr=10.200.0.0/16 @@ -53,21 +44,21 @@ Output: ``` 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 \ --destination-range 10.200.0.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 \ --destination-range 10.200.1.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 \ --destination-range 10.200.2.0/24 ``` diff --git a/docs/09-dns-addon.md b/docs/09-dns-addon.md index 2226959..814bf02 100644 --- a/docs/09-dns-addon.md +++ b/docs/09-dns-addon.md @@ -24,6 +24,7 @@ kubectl create -f https://raw.githubusercontent.com/kelseyhightower/kubernetes-t ``` kubectl --namespace=kube-system get svc ``` + ``` NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE kube-dns 10.32.0.10 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 ``` + ``` -NAME READY STATUS RESTARTS AGE -kube-dns-v19-965658604-c8g5d 3/3 Running 0 49s -kube-dns-v19-965658604-zwl3g 3/3 Running 0 49s +NAME READY STATUS RESTARTS AGE +kube-dns-321336704-6749s 4/4 Running 0 10s ```