update readme, move detailed comment to cluster config yaml file

This commit is contained in:
Ubuntu 2017-11-20 07:26:24 +00:00 коммит произвёл Yifan Xiong
Родитель 494d65b054
Коммит ac8e2ec1c8
2 изменённых файлов: 1 добавлений и 89 удалений

Просмотреть файл

@ -33,92 +33,7 @@ Each k8s component runs in a Docker container. If Docker is missing in the OS, t
## Prepare your cluster configuration
An example
```yaml
clusterID: your_cluster_id
clusterinfo:
# the ip address of nameserver in your cluster
cluster-dns: 168.63.129.16
# the ip address of API-server
api-servers-ip: 10.0.3.7
# the port of API-server, please do not change the default port number below
#api-server-port: 8080
# specify an IP range not in the same network segment with the host machine.
service-cluster-ip-range: 10.254.0.0/16
# According to the etcdversion, you should fill a corresponding backend name.
# If you are not familiar with etcd, please don't change it.
storage-backend: etcd2
# Specify the host's nodename that runs dashboard
dashboard-host: 10.0.3.11
# The docker registry used in the k8s deployment. If you can access to gcr, we suggest to use gcr.
dockerregistry: gcr.io/google_containers
# http://gcr.io/google_containers/hyperkube. Or the tag in your registry.
hyperkubeversion: v1.7.3
# http://gcr.io/google_containers/etcd. Or the tag in your registry.
# If you are not familiar with etcd, please don't change it.
etcdversion: 2.2.5
# http://gcr.io/google_containers/kube-apiserver. Or the tag in your registry.
apiserverversion: v1.7.3
# http://gcr.io/google_containers/kube-scheduler. Or the tag in your registry.
kubeschedulerversion: v1.7.3
# http://gcr.io/google_containers/kube-controller-manager
kubecontrollermanagerversion: v1.7.3
# http://gcr.io/google_containers/kubernetes-dashboard-amd64
dashboard_version: v1.6.1
# The machine list of your cluster
# An example
mastermachinelist:
# hostname, must be the same as it in the host network
infra-01:
# The nodename in k8s. To avoid complication, it is suggested to fill in the hostip for the nodename.
# If you are confident that DNS can resolve your named nodename correctly, you can specify a UNIQUE_HOST_NAME
# hostip: the static IP of this node. We assume the IP of a host will not change.
# username/password: the user name and password in the OS. Make sure it is granted with sudo permission
nodename: IP
hostip: IP
etcdid: etcdid1
username: username
password: password
workermachinelist:
worker-01:
nodename: IP
hostip: IP
username: username
password: password
worker-02:
nodename: IP
hostip: IP
username: username
password: password
infra-04:
nodename: IP
hostip: IP
username: username
password: password
infra-02:
nodename: IP
hostip: IP
username: username
password: password
infra-03:
nodename: IP
hostip: IP
username: username
password: password
```
Please specify the cluster configuration in a yaml file. The [cluster-config-example.yaml](./cluster-config-example.yaml) is an example, where some detailed explanation is included.
## Prepare your dev-box environment

Просмотреть файл

@ -96,6 +96,3 @@ workermachinelist:
hostip: IP
username: username
password: password