@@ -67,6 +67,25 @@ steps that existing cluster setup scripts are making.
6767 - [ kubelet] ( #kubelet )
6868 - [ kube-proxy] ( #kube-proxy )
6969 - [ Networking] ( #networking )
70+ - [ Other] ( #other )
71+ - [ Using Configuration Management] ( #using-configuration-management )
72+ - [ Bootstrapping the Cluster] ( #bootstrapping-the-cluster )
73+ - [ etcd] ( #etcd )
74+ - [ Apiserver] ( #apiserver )
75+ - [ Apiserver pod template] ( #apiserver-pod-template )
76+ - [ Starting Apiserver] ( #starting-apiserver )
77+ - [ Scheduler] ( #scheduler )
78+ - [ Controller Manager] ( #controller-manager )
79+ - [ Logging] ( #logging )
80+ - [ Monitoring] ( #monitoring )
81+ - [ DNS] ( #dns )
82+ - [ Troubleshooting] ( #troubleshooting )
83+ - [ Running validate-cluster] ( #running-validate-cluster )
84+ - [ Inspect pods and services] ( #inspect-pods-and-services )
85+ - [ Try Examples] ( #try-examples )
86+ - [ Running the Conformance Test] ( #running-the-conformance-test )
87+ - [ Networking] ( #networking )
88+ - [ Getting Help] ( #getting-help )
7089
7190<!-- END MUNGE: GENERATED_TOC -->
7291
@@ -309,7 +328,7 @@ many distinct files to make:
309328You can make the files by copying the ` $HOME/.kube/config ` , by following the code
310329in ` cluster/gce/configure-vm.sh ` or by using the following template:
311330
312- ```
331+ ``` yaml
313332apiVersion : v1
314333kind : Config
315334users :
@@ -356,7 +375,7 @@ If you previously had Docker installed on a node without setting Kubernetes-spec
356375options, you may have a Docker-created bridge and iptables rules. You may want to remove these
357376as follows before proceeding to configure Docker for Kubernetes.
358377
359- ```
378+ ` ` ` sh
360379iptables -t nat -F
361380ifconfig docker0 down
362381brctl delbr docker0
@@ -462,7 +481,11 @@ because of how this is used later.
462481If you have turned off Docker's IP masquerading to allow pods to talk to each
463482other, then you may need to do masquerading just for destination IPs outside
464483the cluster network. For example :
465- ``` iptables -w -t nat -A POSTROUTING -o eth0 -j MASQUERADE \! -d ${CLUSTER_SUBNET} ```
484+
485+ ` ` ` sh
486+ iptables -w -t nat -A POSTROUTING -o eth0 -j MASQUERADE \! -d ${CLUSTER_SUBNET}
487+ ` ` `
488+
466489This will rewrite the source address from
467490the PodIP to the Node IP for traffic bound outside the cluster, and kernel
468491[connection tracking](http://www.iptables.info/en/connection-state.html)
@@ -635,15 +658,15 @@ Place the completed pod template into the kubelet config dir
635658
636659Next, verify that kubelet has started a container for the apiserver :
637660
638- ```
661+ ` ` ` console
639662$ sudo docker ps | grep apiserver:
6406635783290746d5 gcr.io/google_containers/kube-apiserver:e36bf367342b5a80d7467fd7611ad873 "/bin/sh -c '/usr/lo'" 10 seconds ago Up 9 seconds k8s_kube-apiserver.feb145e7_kube-apiserver-kubernetes-master_default_eaebc600cf80dae59902b44225f2fc0a_225a4695
641664
642665` ` `
643666
644667Then try to connect to the apiserver :
645668
646- ```
669+ ` ` ` console
647670
648671$ echo $(curl -s http://localhost:8080/healthz)
649672ok
0 commit comments