clean up docs

pull/13/head
Kelsey Hightower 2016-07-09 00:15:26 -07:00
parent 3fa16bfaf5
commit 28c807d98d
3 changed files with 22 additions and 18 deletions

View File

@ -132,6 +132,10 @@ cat > kubernetes-csr.json <<EOF
{
"CN": "kubernetes",
"hosts": [
"worker0",
"worker1",
"worker2",
"10.32.0.1",
"10.240.0.10",
"10.240.0.11",
"10.240.0.12",

View File

@ -41,11 +41,11 @@ Run the following commands on `controller0`, `controller1`, `controller2`:
Move the TLS certificates in place:
```
sudo mkdir -p /var/run/kubernetes
sudo mkdir -p /var/lib/kubernetes
```
```
sudo mv ca.pem kubernetes-key.pem kubernetes.pem /var/run/kubernetes/
sudo mv ca.pem kubernetes-key.pem kubernetes.pem /var/lib/kubernetes/
```
Download and install the Kubernetes controller binaries:
@ -76,7 +76,7 @@ cat authorization-policy.jsonl
```
```
sudo mv authorization-policy.jsonl /var/run/kubernetes/
sudo mv authorization-policy.jsonl /var/lib/kubernetes/
```
```
@ -88,7 +88,7 @@ cat token.csv
```
```
sudo mv token.csv /var/run/kubernetes/
sudo mv token.csv /var/lib/kubernetes/
```
Capture the internal IP address:
@ -113,19 +113,19 @@ ExecStart=/usr/bin/kube-apiserver \
--allow-privileged=true \
--apiserver-count=3 \
--authorization-mode=ABAC \
--authorization-policy-file=/var/run/kubernetes/authorization-policy.jsonl \
--authorization-policy-file=/var/lib/kubernetes/authorization-policy.jsonl \
--bind-address=0.0.0.0 \
--enable-swagger-ui=true \
--etcd-cafile=/var/run/kubernetes/ca.pem \
--etcd-cafile=/var/lib/kubernetes/ca.pem \
--insecure-bind-address=0.0.0.0 \
--kubelet-certificate-authority=/var/run/kubernetes/ca.pem \
--kubelet-certificate-authority=/var/lib/kubernetes/ca.pem \
--etcd-servers=https://10.240.0.10:2379,https://10.240.0.11:2379,https://10.240.0.12:2379 \
--service-account-key-file=/var/run/kubernetes/kubernetes-key.pem \
--service-account-key-file=/var/lib/kubernetes/kubernetes-key.pem \
--service-cluster-ip-range=10.32.0.0/24 \
--service-node-port-range=30000-32767 \
--tls-cert-file=/var/run/kubernetes/kubernetes.pem \
--tls-private-key-file=/var/run/kubernetes/kubernetes-key.pem \
--token-auth-file=/var/run/kubernetes/token.csv \
--tls-cert-file=/var/lib/kubernetes/kubernetes.pem \
--tls-private-key-file=/var/lib/kubernetes/kubernetes-key.pem \
--token-auth-file=/var/lib/kubernetes/token.csv \
--v=2
Restart=on-failure
RestartSec=5
@ -169,8 +169,8 @@ ExecStart=/usr/bin/kube-controller-manager \
--cluster-name=kubernetes \
--leader-elect=true \
--master=http://INTERNAL_IP:8080 \
--root-ca-file=/var/run/kubernetes/ca.pem \
--service-account-private-key-file=/var/run/kubernetes/kubernetes-key.pem \
--root-ca-file=/var/lib/kubernetes/ca.pem \
--service-account-private-key-file=/var/lib/kubernetes/kubernetes-key.pem \
--service-cluster-ip-range=10.32.0.0/24 \
--v=2
Restart=on-failure

View File

@ -32,11 +32,11 @@ Run the following commands on `worker0`, `worker1`, `worker2`:
#### Move the TLS certificates in place
```
sudo mkdir -p /var/run/kubernetes
sudo mkdir -p /var/lib/kubernetes
```
```
sudo mv ca.pem kubernetes-key.pem kubernetes.pem /var/run/kubernetes/
sudo mv ca.pem kubernetes-key.pem kubernetes.pem /var/lib/kubernetes/
```
#### Docker
@ -132,7 +132,7 @@ sudo sh -c 'echo "apiVersion: v1
kind: Config
clusters:
- cluster:
certificate-authority: /var/run/kubernetes/ca.pem
certificate-authority: /var/lib/kubernetes/ca.pem
server: https://10.240.0.20:6443
name: kubernetes
contexts:
@ -170,8 +170,8 @@ ExecStart=/usr/bin/kubelet \
--kubeconfig=/var/lib/kubelet/kubeconfig \
--reconcile-cidr=true \
--serialize-image-pulls=false \
--tls-cert-file=/var/run/kubernetes/kubernetes.pem \
--tls-private-key-file=/var/run/kubernetes/kubernetes-key.pem \
--tls-cert-file=/var/lib/kubernetes/kubernetes.pem \
--tls-private-key-file=/var/lib/kubernetes/kubernetes-key.pem \
--v=2
Restart=on-failure