curl -s https://raw.githubusercontent.com/kubeup/okdc/master/okdc-centos.sh|TOKEN=kavmg8.yb7k9jvmfbgjqgbx MASTER=192.168.0.192:6443 DOCKER_MIRROR=https://docker.mirrors.ustc.edu.cn shpython
[mac@Centos73 ~]$ sudo sh okdc-centos.sh
OKDC v1.3.1 by kubeup
One-liner Kubernetes Deployment in China
http://github.com/kubeup/okdclinux
https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
registry.aliyuncs.com/archon/hyperkube-amd64:v1.7.0
registry.aliyuncs.com/archon/etcd:3.0.17git
You will be prompted to input custom docker hub mirror and preferred network layer.github
Package Arch Version Repository Size
=======================================================================================================================================================
Installing:
docker x86_64 2:1.12.6-32.git88a4867.el7.centos 2extras 14 M
kubeadm x86_64 1.7.3-1 2kubernetes 8.6 M
kubectl x86_64 1.7.3-1 2kubernetes 8.9 M
kubelet x86_64 1.7.3-1 2kubernetes 17 M
kubernetes-cni x86_64 0.5.1-0 2kubernetes 7.4 M
Installing for dependencies:
audit-libs-python x86_64 2.6.5-3.el7_3.1 2updates 70 k
checkpolicy x86_64 2.5-4.el7 centos7 290 k
container-selinux noarch 2:2.19-2.1.el7 2extras 28 k
docker-client x86_64 2:1.12.6-32.git88a4867.el7.centos 2extras 3.2 M
docker-common x86_64 2:1.12.6-32.git88a4867.el7.centos 2extras 77 k
libcgroup x86_64 0.41-11.el7 centos7 65 k
libseccomp x86_64 2.3.1-2.el7 centos7 56 k
libsemanage-python x86_64 2.5-5.1.el7_3 2updates 104 k
oci-register-machine x86_64 1:0-3.11.gitdd0daef.el7 2extras 1.0 M
oci-systemd-hook x86_64 1:0.1.7-4.gite533efa.el7 2extras 30 k
policycoreutils-python x86_64 2.5-11.el7_3 2updates 445 k
python-IPy noarch 0.75-6.el7 centos7 32 k
setools-libs x86_64 3.3.8-1.1.el7 centos7 612 k
skopeo-containers x86_64 1:0.1.20-2.el7 2extras 7.8 k
socat x86_64 1.7.2.2-5.el7 centos7 255 k
yajl x86_64 2.0.4-4.el7 centos7 39 k
Updating for dependencies:
audit x86_64 2.6.5-3.el7_3.1 2updates 233 k
audit-libs x86_64 2.6.5-3.el7_3.1 2updates 85 k
libsemanage x86_64 2.5-5.1.el7_3 2updates 144 k
policycoreutils x86_64 2.5-11.el7_3 2updates 841 kdocker
Transaction Summary
=======================================================================================================================================================
Install 5 Packages (+16 Dependent packages)
Upgrade ( 4 Dependent packages)centos
Total download size: 63 Mcurl
- ver 1.7.2
REPOSITORY TAG IMAGE ID CREATED SIZE
============================================================================================================================================================
registry.cn-hangzhou.aliyuncs.com/google-containers/hyperkube-amd64 v1.7.2 177673a1bbda 2 weeks ago 616.4 MB
registry.aliyuncs.com/archon/flannel v0.8.0-amd64 9db3bab8c19e 3 weeks ago 50.73 MB
registry.aliyuncs.com/archon/k8s-dns-sidecar-amd64 1.14.4 38bac66034a6 5 weeks ago 41.81 MB
registry.aliyuncs.com/archon/k8s-dns-kube-dns-amd64 1.14.4 a8e00546bcf3 5 weeks ago 49.38 MB
registry.aliyuncs.com/archon/k8s-dns-dnsmasq-nanny-amd64 1.14.4 f7f45b9cb733 5 weeks ago 41.41 MB
registry.aliyuncs.com/archon/etcd 3.0.17 243830dae7dd 5 months ago 168.9 MB
registry.aliyuncs.com/archon/pause-amd64 3.0 99e59f495ffa 15 months ago 746.9 kBjvm
Package Arch Version Repository Size
============================================================================================================================================================
Installing:
docker x86_64 2:1.12.6-32.git88a4867.el7.centos extras 14 M
kubeadm x86_64 1.7.0-0 kubernetes 8.6 M
kubectl x86_64 1.7.3-0 kubernetes 8.9 M
kubelet x86_64 1.7.3-0 kubernetes 17 M
kubernetes-cni x86_64 0.5.1-0 kubernetes 7.4 Mide
- ver 1.6.2
REPOSITORY TAG IMAGE ID CREATED SIZE
============================================================================================================================================================
registry.aliyuncs.com/archon/hyperkube-amd64 v1.6.2 47c16ab7f7d0 3 months ago 583 MB
registry.aliyuncs.com/archon/flannel v0.8.0-amd64 9db3bab8c19e 3 weeks ago 50.73 MB
registry.aliyuncs.com/archon/k8s-dns-sidecar-amd64 1.14.1 fc5e302d8309 5 months ago 44.52 MB
registry.aliyuncs.com/archon/k8s-dns-kube-dns-amd64 1.14.1 f8363dbf447b 5 months ago 52.36 MB
registry.aliyuncs.com/archon/k8s-dns-dnsmasq-nanny-amd64 1.14.1 1091847716ec 5 months ago 44.84 MB
registry.aliyuncs.com/archon/etcd 3.0.17 243830dae7dd 5 months ago 168.9 MB
registry.aliyuncs.com/archon/pause-amd64 3.0 99e59f495ffa 15 months ago 746.9 kBgoogle
registry.cn-hangzhou.aliyuncs.com/google-containers/hyperkube-amd64:v1.7.2
registry.cn-hangzhou.aliyuncs.com/magina-k8s/kubernetes-dashboard-amd64:v1.6.3
grafana.yaml: image: gcr.io/google_containers/heapster-grafana-amd64:v4.4.1
heapster.yaml: image: gcr.io/google_containers/heapster-amd64:v1.3.0
influxdb.yaml: image: gcr.io/google_containers/heapster-influxdb-amd64:v1.1.1
sed -i "s|gcr.io/google_containers|registry.cn-hangzhou.aliyuncs.com/google-containers|g" ./*.yaml
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.6.3/src/deploy/kubernetes-dashboard.yaml
sudo chmod a+r /etc/kubernetes/admin.conf
kubectl --kubeconfig /etc/kubernetes/admin.conf get pods --all-namespaces -o wide
sudo kubectl proxy --address='0.0.0.0' --port=8001 --accept-hosts='^*$' &