clean up docs
parent
3fa16bfaf5
commit
28c807d98d
|
@ -132,6 +132,10 @@ cat > kubernetes-csr.json <<EOF
|
||||||
{
|
{
|
||||||
"CN": "kubernetes",
|
"CN": "kubernetes",
|
||||||
"hosts": [
|
"hosts": [
|
||||||
|
"worker0",
|
||||||
|
"worker1",
|
||||||
|
"worker2",
|
||||||
|
"10.32.0.1",
|
||||||
"10.240.0.10",
|
"10.240.0.10",
|
||||||
"10.240.0.11",
|
"10.240.0.11",
|
||||||
"10.240.0.12",
|
"10.240.0.12",
|
||||||
|
|
|
@ -41,11 +41,11 @@ Run the following commands on `controller0`, `controller1`, `controller2`:
|
||||||
Move the TLS certificates in place:
|
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:
|
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:
|
Capture the internal IP address:
|
||||||
|
@ -113,19 +113,19 @@ ExecStart=/usr/bin/kube-apiserver \
|
||||||
--allow-privileged=true \
|
--allow-privileged=true \
|
||||||
--apiserver-count=3 \
|
--apiserver-count=3 \
|
||||||
--authorization-mode=ABAC \
|
--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 \
|
--bind-address=0.0.0.0 \
|
||||||
--enable-swagger-ui=true \
|
--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 \
|
--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 \
|
--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-cluster-ip-range=10.32.0.0/24 \
|
||||||
--service-node-port-range=30000-32767 \
|
--service-node-port-range=30000-32767 \
|
||||||
--tls-cert-file=/var/run/kubernetes/kubernetes.pem \
|
--tls-cert-file=/var/lib/kubernetes/kubernetes.pem \
|
||||||
--tls-private-key-file=/var/run/kubernetes/kubernetes-key.pem \
|
--tls-private-key-file=/var/lib/kubernetes/kubernetes-key.pem \
|
||||||
--token-auth-file=/var/run/kubernetes/token.csv \
|
--token-auth-file=/var/lib/kubernetes/token.csv \
|
||||||
--v=2
|
--v=2
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
@ -169,8 +169,8 @@ ExecStart=/usr/bin/kube-controller-manager \
|
||||||
--cluster-name=kubernetes \
|
--cluster-name=kubernetes \
|
||||||
--leader-elect=true \
|
--leader-elect=true \
|
||||||
--master=http://INTERNAL_IP:8080 \
|
--master=http://INTERNAL_IP:8080 \
|
||||||
--root-ca-file=/var/run/kubernetes/ca.pem \
|
--root-ca-file=/var/lib/kubernetes/ca.pem \
|
||||||
--service-account-private-key-file=/var/run/kubernetes/kubernetes-key.pem \
|
--service-account-private-key-file=/var/lib/kubernetes/kubernetes-key.pem \
|
||||||
--service-cluster-ip-range=10.32.0.0/24 \
|
--service-cluster-ip-range=10.32.0.0/24 \
|
||||||
--v=2
|
--v=2
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
|
@ -32,11 +32,11 @@ Run the following commands on `worker0`, `worker1`, `worker2`:
|
||||||
#### Move the TLS certificates in place
|
#### 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
|
#### Docker
|
||||||
|
@ -132,7 +132,7 @@ sudo sh -c 'echo "apiVersion: v1
|
||||||
kind: Config
|
kind: Config
|
||||||
clusters:
|
clusters:
|
||||||
- cluster:
|
- cluster:
|
||||||
certificate-authority: /var/run/kubernetes/ca.pem
|
certificate-authority: /var/lib/kubernetes/ca.pem
|
||||||
server: https://10.240.0.20:6443
|
server: https://10.240.0.20:6443
|
||||||
name: kubernetes
|
name: kubernetes
|
||||||
contexts:
|
contexts:
|
||||||
|
@ -170,8 +170,8 @@ ExecStart=/usr/bin/kubelet \
|
||||||
--kubeconfig=/var/lib/kubelet/kubeconfig \
|
--kubeconfig=/var/lib/kubelet/kubeconfig \
|
||||||
--reconcile-cidr=true \
|
--reconcile-cidr=true \
|
||||||
--serialize-image-pulls=false \
|
--serialize-image-pulls=false \
|
||||||
--tls-cert-file=/var/run/kubernetes/kubernetes.pem \
|
--tls-cert-file=/var/lib/kubernetes/kubernetes.pem \
|
||||||
--tls-private-key-file=/var/run/kubernetes/kubernetes-key.pem \
|
--tls-private-key-file=/var/lib/kubernetes/kubernetes-key.pem \
|
||||||
--v=2
|
--v=2
|
||||||
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
Loading…
Reference in New Issue