~# docker version Client: Version: 18.06.2-ce API version: 1.38 Go version: go1.10.3 Git commit: 6d37f41 Built: Sun Feb 10 03:48:06 2019 OS/Arch: linux/amd64 Experimental: false
Server: Engine: Version: 18.06.2-ce API version: 1.38 (minimum version 1.12) Go version: go1.10.3 Git commit: 6d37f41 Built: Sun Feb 10 03:46:30 2019 OS/Arch: linux/amd64 Experimental: false
~# kubeadm config images pull I1122 23:17:55.359113 2290 version.go:240] remote version is much newer: v1.16.3; falling back to: stable-1.14 [config/images] Pulled k8s.gcr.io/kube-apiserver:v1.14.9 [config/images] Pulled k8s.gcr.io/kube-controller-manager:v1.14.9 [config/images] Pulled k8s.gcr.io/kube-scheduler:v1.14.9 [config/images] Pulled k8s.gcr.io/kube-proxy:v1.14.9 [config/images] Pulled k8s.gcr.io/pause:3.1 [config/images] Pulled k8s.gcr.io/etcd:3.3.10 [config/images] Pulled k8s.gcr.io/coredns:1.3.1
~# docker images REPOSITORY TAG IMAGE ID CREATED SIZE k8s.gcr.io/kube-proxy v1.14.9 636041c2a488 9 days ago 82.1MB k8s.gcr.io/kube-apiserver v1.14.9 5811259ed0c9 9 days ago 209MB k8s.gcr.io/kube-controller-manager v1.14.9 07193a77f264 9 days ago 157MB k8s.gcr.io/kube-scheduler v1.14.9 0f036524b7a2 9 days ago 81.6MB k8s.gcr.io/coredns 1.3.1 eb516548c180 10 months ago 40.3MB k8s.gcr.io/etcd 3.3.10 2c4adeb21b4f 11 months ago 258MB k8s.gcr.io/pause 3.1 da86e6ba6ca1 23 months ago 742kB
# 安裝出現以下 error: # error execution phase preflight: [preflight] Some fatal errors occurred: # [ERROR NumCPU]: the number of available CPUs 1 is less than the required 2 # 增加參數 --ignore-preflight-errors=NumCPU
You should now deploy a pod network to the cluster. Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at: https://kubernetes.io/docs/concepts/cluster-administration/addons/
You can now join any number of machines by running the following on each node as root:
~# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ab574cbeb1f2 2ed65dca1a98 "/usr/local/bin/kube…" 33 seconds ago Up 33 seconds k8s_kube-proxy_kube-proxy-7cfkg_kube-system_83851117-48bf-11e9-b533-000c29d7e00b_0 5bb5811d11d4 k8s.gcr.io/pause:3.1 "/pause" 34 seconds ago Up 33 seconds k8s_POD_kube-proxy-7cfkg_kube-system_83851117-48bf-11e9-b533-000c29d7e00b_0 acc7433382dc b8df3b177be2 "etcd --advertise-cl…" 56 seconds ago Up 55 seconds k8s_etcd_etcd-k8s-master01-u1604_kube-system_f09a86c0e59bd660bdd359cf6d46e2be_0 bf812ade4168 14028d7dcbf9 "kube-scheduler --ad…" 56 seconds ago Up 55 seconds k8s_kube-scheduler_kube-scheduler-k8s-master01-u1604_kube-system_cbb979db2eb698a42e58c4ca7edd7b16_0 3951b23da250 abbc2fa179b7 "kube-controller-man…" 56 seconds ago Up 55 seconds k8s_kube-controller-manager_kube-controller-manager-k8s-master01-u1604_kube-system_fc391fbab6130026480db4a97e595c16_0 9c146a4aae4b 6de771eabf8c "kube-apiserver --au…" 56 seconds ago Up 55 seconds k8s_kube-apiserver_kube-apiserver-k8s-master01-u1604_kube-system_f09f833b5c32ac560364b59f58055df6_0
同樣的,查看 docker images,應該已經抓了一堆東西。
1 2 3 4 5 6 7 8 9
~# docker images REPOSITORY TAG IMAGE ID CREATED SIZE k8s.gcr.io/kube-proxy-amd64 v1.11.8 2ed65dca1a98 2 weeks ago 98.1MB k8s.gcr.io/kube-apiserver-amd64 v1.11.8 6de771eabf8c 2 weeks ago 187MB k8s.gcr.io/kube-controller-manager-amd64 v1.11.8 abbc2fa179b7 2 weeks ago 155MB k8s.gcr.io/kube-scheduler-amd64 v1.11.8 14028d7dcbf9 2 weeks ago 56.9MB k8s.gcr.io/coredns 1.1.3 b3b94275d97c 9 months ago 45.6MB k8s.gcr.io/etcd-amd64 3.2.18 b8df3b177be2 11 months ago 219MB k8s.gcr.io/pause 3.1 da86e6ba6ca1 15 months ago 742kB
podsecuritypolicy.policy/psp.flannel.unprivileged created clusterrole.rbac.authorization.k8s.io/flannel created clusterrolebinding.rbac.authorization.k8s.io/flannel created serviceaccount/flannel created configmap/kube-flannel-cfg created daemonset.apps/kube-flannel-ds-amd64 created daemonset.apps/kube-flannel-ds-arm64 created daemonset.apps/kube-flannel-ds-arm created daemonset.apps/kube-flannel-ds-ppc64le created daemonset.apps/kube-flannel-ds-s390x created