Skip to content

Commit 5124706

Browse files
committed
Improve markdown highlighting in scratch getting started guide.
1 parent 8af0e3e commit 5124706

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

docs/getting-started-guides/scratch.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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:
309328
You can make the files by copying the `$HOME/.kube/config`, by following the code
310329
in `cluster/gce/configure-vm.sh` or by using the following template:
311330

312-
```
331+
```yaml
313332
apiVersion: v1
314333
kind: Config
315334
users:
@@ -356,7 +375,7 @@ If you previously had Docker installed on a node without setting Kubernetes-spec
356375
options, you may have a Docker-created bridge and iptables rules. You may want to remove these
357376
as follows before proceeding to configure Docker for Kubernetes.
358377

359-
```
378+
```sh
360379
iptables -t nat -F
361380
ifconfig docker0 down
362381
brctl delbr docker0
@@ -462,7 +481,11 @@ because of how this is used later.
462481
If you have turned off Docker's IP masquerading to allow pods to talk to each
463482
other, then you may need to do masquerading just for destination IPs outside
464483
the 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+
466489
This will rewrite the source address from
467490
the 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

636659
Next, verify that kubelet has started a container for the apiserver:
637660

638-
```
661+
```console
639662
$ sudo docker ps | grep apiserver:
640663
5783290746d5 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

644667
Then try to connect to the apiserver:
645668

646-
```
669+
```console
647670
648671
$ echo $(curl -s http://localhost:8080/healthz)
649672
ok

0 commit comments

Comments
 (0)