1 环境准备
1.1 机器
ip | 类型 | |
---|---|---|
10.17.90.8 | node-1 | master |
10.17.90.13 | node-2 | node1 |
1.2 kx上网
使用 搭建kx上网, 例如设置httpproxy地址为http://u:1@local:10800
1.3 安装docker
yum -y install docker
1.3.1 配置docker
emacs /usr/lib/system/docker.sevice Enviornment="HTTP_PROXY=http://u:1@local:10800" "NO_PROXY=localhost,127.0.0.1,daocloud.io,aliyuncs.com"
3 初始化
3.1 初始化配置文件
kubeadm.yaml apiVersion: kubeadm.k8s.io/v1alpha1 kind: MasterConfiguration controllerManagerExtraArgs: horizontal-pod-autoscaler-use-rest-clients: "true" horizontal-pod-autoscaler-sync-period: "10s" node-monitor-grace-period: "10s" node-name: "mxy-d-wkm-dev-13.test.xesv5.com" apiServerExtraArgs: runtime-config: "api/all=true" kubernetesVersion: "stable-1.10"
3.2 初始化
kubeadm init --config=kubeadm.yaml
Created: 2018-10-19 Fri 13:12