Creating cluster "kind" ... ✓ Ensuring node image (kindest/node:v1.21.1) 🖼 ✓ Preparing nodes 📦 📦 📦 ✓ Writing configuration 📜 ✓ Starting control-plane 🕹️ ✓ Installing CNI 🔌 ✓ Installing StorageClass 💾 ✓ Joining worker nodes 🚜 Set kubectl context to "kind-kind" You can now use your cluster with:
kubectl cluster-info --context kind-kind
Have a nice day! 👋
看一下集群状态:
1 2 3 4 5
kubectl get nodes NAME STATUS ROLES AGE VERSION kind-control-plane Ready control-plane,master 90s v1.21.1 kind-worker Ready <none> 58s v1.21.1 kind-worker2 Ready <none> 60s v1.21.1
bash <(curl https://raw.githubusercontent.com/krustlet/krustlet/main/scripts/bootstrap.sh) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2456 100 2456 0 0 2251 0 0:00:01 0:00:01 --:--:-- 2253 secret/bootstrap-token-3amumr created Switched to context "kind-kind". Context "kind-kind" renamed to "tls-bootstrap-token-user@kubernetes". User "tls-bootstrap-token-user" set. Context "tls-bootstrap-token-user@kubernetes" modified. Context "tls-bootstrap-token-user@kubernetes" modified.
BOOTSTRAP: received TLS certificate approval: continuing Nov 14 04:21:06.747 ERROR kubelet::state::common::image_pull: error=unsupported media type: application/vnd.docker.distribution.manifest.list.v2+json Nov 14 04:21:17.892 ERROR kubelet::state::common::image_pull: error=unsupported media type: application/vnd.docker.distribution.manifest.list.v2+json Nov 14 04:21:39.162 ERROR kubelet::state::common::image_pull: error=unsupported media type: application/vnd.docker.distribution.manifest.list.v2+json Nov 14 04:22:20.411 ERROR kubelet::state::common::image_pull: error=unsupported media type: application/vnd.docker.distribution.manifest.list.v2+json Nov 14 04:23:41.632 ERROR kubelet::state::common::image_pull: error=unsupported media type: application/vnd.docker.distribution.manifest.list.v2+json