Browse code

Edited kubernetes.md

Change-Id: Iebc3e36f78f0bfa6170c293495ef745168811889
Reviewed-on: http://photon-jenkins.eng.vmware.com/1190
Reviewed-by: Steve Hoenisch <shoenisch@vmware.com>
Tested-by: Steve Hoenisch <shoenisch@vmware.com>

shoenisch authored on 2016/07/16 03:20:52
Showing 1 changed files
... ...
@@ -8,7 +8,7 @@ Running Kubernetes on Photon OS
8 8
 
9 9
 ## Prerequisites
10 10
 
11
-* You need 2 or more machines with Photon installed.
11
+* You need two or more machines with the 1.0 general availability or later version of Photon OS installed.
12 12
 
13 13
 ## Instructions
14 14
 
... ...
@@ -16,7 +16,7 @@ This document gets you started using Kubernetes with Photon OS. The instructions
16 16
 
17 17
 The Kubernetes package provides several services: kube-apiserver, kube-scheduler, kube-controller-manager, kubelet, kube-proxy.  These services are managed by systemd. Their configuration resides in a central location: /etc/kubernetes.  
18 18
 
19
-The following instructions break the services up between the hosts.  The first host, `photon-master`, will be the Kubernetes master.  This host will run the kube-apiserver, kube-controller-manager, and kube-scheduler.  In addition, the master will also run `etcd`. Although `etcd` is not needed on the master if `etcd` runs on a different host, this guide assumes that `etcd` and the Kubernetes master run on the same host.  The remaining host, `photon-node`, will be the node; it will run kubelet, proxy and docker.
19
+The following instructions break the services up between the hosts.  The first host, `photon-master`, will be the Kubernetes master.  This host will run the kube-apiserver, kube-controller-manager, and kube-scheduler.  In addition, the master will also run `etcd`. Although `etcd` is not needed on the master if `etcd` runs on a different host, this guide assumes that `etcd` and the Kubernetes master run on the same host.  The remaining host, `photon-node`, will be the node; it will run kubelet, proxy, and docker.
20 20
 
21 21
 **System Information**
22 22
 
... ...
@@ -37,13 +37,13 @@ The following packages should already be installed on the full version of Photon
37 37
 tdnf install kubernetes
38 38
 ``` 
39 39
 
40
-* Install etcd and iptables on photon-master
40
+* Install iptables on photon-master:
41 41
 
42 42
 ```sh
43
-tdnf install etcd iptables
43
+tdnf install iptables
44 44
 ```
45 45
 
46
-* Install docker on photon-node
46
+* Install Docker on photon-node:
47 47
 
48 48
 ```sh
49 49
 tdnf install docker
... ...
@@ -134,7 +134,7 @@ a Kubernetes node (photon-node) is shown in a later section.
134 134
 
135 135
 **Configure the Kubernetes services on the node**
136 136
 
137
-***We need to configure the kubelet on the node.***
137
+You configure the kubelet on the node as follows. 
138 138
 
139 139
 * Edit /etc/kubernetes/kubelet to appear like this:
140 140
 
... ...
@@ -173,16 +173,15 @@ NAME                LABELS              STATUS
173 173
 photon-node          name=photon-node-label     Ready
174 174
 ```
175 175
 
176
+If the node status is `NotReady`, verify that the firewall rules are permissive for Kubernetes.  
177
+
176 178
 * Deletion of nodes: To delete _photon-node_ from your Kubernetes cluster, one should run the following on photon-master (please do not do it, it is just for information):
177 179
 
178 180
 ```sh
179 181
 kubectl delete -f ./node.json
180 182
 ```
181 183
 
182
-*You should be finished.*
183
-
184
-**The cluster should be running. Launch a test pod.**
184
+That's it. You should have a functional cluster. You can now launch a test pod. Check out [Kubernetes 101](http://kubernetes.io/docs/user-guide/walkthrough/) for an introduction to working with Kubernetes. 
185 185
 
186
-You should have a functional cluster. Check out [Kubernetes 101](http://kubernetes.io/docs/user-guide/walkthrough/) for an introduction to working with Kubernetes. 
187 186
 
188 187