Skip to content

Commit cc23592

Browse files
committed
clearify command prompt
1 parent 8d3f150 commit cc23592

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/Manual/Tutorials/Kubernetes/bare-metal.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ Let there be 3 Linux boxes, `kube01`, `kube02` and `kube03`, with `kubeadm` and
1919

2020
The master node is outstanding in that it handles the API server and some other vital infrastructure
2121

22-
kube01 > sudo kubeadm init --pod-network-cidr=10.244.0.0/16
22+
```
23+
kube01:~ > sudo kubeadm init --pod-network-cidr=10.244.0.0/16
24+
```
2325

2426
You should see an output like below:
2527

@@ -93,17 +95,17 @@ kubeadm join 192.168.10.61:6443 --token blcr1y.49wloegyaugice8a --discovery-toke
9395
Go ahead and do as above instructed and see into getting kubectl to work on the master:
9496

9597
```
96-
kube01 > mkdir -p $HOME/.kube
97-
kube01 > sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
98-
kube01 > sudo chown $(id -u):$(id -g) $HOME/.kube/config
98+
kube01:~ > mkdir -p $HOME/.kube
99+
kube01:~ > sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
100+
kube01:~ > sudo chown $(id -u):$(id -g) $HOME/.kube/config
99101
```
100102

101103
## Deploy a pod network
102104

103105
For this guide, we go with **flannel**, as it is an easy way of setting up a layer 3 network, which uses the Kubernetes API and just works anywhere, where a network between the involved machines works:
104106

105107
```
106-
kube01 > kubectl apply -f \
108+
kube01:~ > kubectl apply -f \
107109
https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml
108110
109111
clusterrole.rbac.authorization.k8s.io/flannel created

0 commit comments

Comments
 (0)