mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
Getting-started-guide cleanup.
Put a Prerequisites section in all the hosted gettting-started-guides. Change how title and contents are formatted so they are not automatically included in the ToC. Tweak other section headers to improve ToCs.
This commit is contained in:
@@ -1,25 +1,28 @@
|
||||
# Running kubernetes locally via Docker
|
||||
Running kubernetes locally via Docker
|
||||
-------------------------------------
|
||||
|
||||
## Contents
|
||||
**Table of Contents**
|
||||
|
||||
- [Running kubernetes locally via Docker](#running-kubernetes-locally-via-docker)
|
||||
- [Contents](#contents)
|
||||
- [Setting up a Cluster](#setting-up-a-cluster)
|
||||
- [Step One: Run etcd](#step-one-run-etcd)
|
||||
- [Step Two: Run the master](#step-two-run-the-master)
|
||||
- [Step Three: Run the service proxy](#step-three-run-the-service-proxy)
|
||||
- [Test it out](#test-it-out)
|
||||
- [Run an application](#run-an-application)
|
||||
- [Expose it as a service:](#expose-it-as-a-service)
|
||||
- [A note on turning down your cluster](#a-note-on-turning-down-your-cluster)
|
||||
- [Overview](#setting-up-a-cluster)
|
||||
- [Prerequisites](#prerequisites)
|
||||
- [Step One: Run etcd](#step-one-run-etcd)
|
||||
- [Step Two: Run the master](#step-two-run-the-master)
|
||||
- [Step Three: Run the service proxy](#step-three-run-the-service-proxy)
|
||||
- [Test it out](#test-it-out)
|
||||
- [Run an application](#run-an-application)
|
||||
- [Expose it as a service:](#expose-it-as-a-service)
|
||||
- [A note on turning down your cluster](#a-note-on-turning-down-your-cluster)
|
||||
|
||||
## Setting up a Cluster
|
||||
### Overview
|
||||
|
||||
The following instructions show you how to set up a simple, single node kubernetes cluster using Docker.
|
||||
|
||||
Here's a diagram of what the final result will look like:
|
||||

|
||||
|
||||
### Prerequisites
|
||||
1. You need to have docker installed on one machine.
|
||||
|
||||
### Step One: Run etcd
|
||||
```sh
|
||||
docker run --net=host -d gcr.io/google_containers/etcd:2.0.9 /usr/local/bin/etcd --addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data
|
||||
|
Reference in New Issue
Block a user