root@cby:~# minikube start --driver=docker --container-runtime=containerd --image-mirror-country=cn --force * minikube v1.26.1 on Ubuntu 22.04 ! minikube skips various validations when --force is supplied; this may lead to unexpected behavior * Using the docker driver based on user configuration * The "docker" driver should not be used with root privileges. If you wish to continue as root, use --force. * If you are running minikube within a VM, consider using --driver=none: * https://minikube.sigs.k8s.io/docs/reference/drivers/none/ * Using image repository registry.cn-hangzhou.aliyuncs.com/google_containers * Using Docker driver with root privileges * Starting control plane node minikube in cluster minikube * Pulling base image ... > registry.cn-hangzhou.aliyun...: 386.60 MiB / 386.61 MiB 100.00% 1.37 Mi > registry.cn-hangzhou.aliyun...: 0 B [____________________] ?% ? p/s 4m9s * Creating docker container (CPUs=2, Memory=2200MB) ... * Preparing Kubernetes v1.24.3 on containerd 1.6.6 ... > kubelet.sha256: 64 B / 64 B [-------------------------] 100.00% ? p/s 0s > kubectl.sha256: 64 B / 64 B [-------------------------] 100.00% ? p/s 0s > kubeadm.sha256: 64 B / 64 B [-------------------------] 100.00% ? p/s 0s > kubeadm: 42.32 MiB / 42.32 MiB [--------------] 100.00% 1.36 MiB p/s 31s > kubectl: 43.59 MiB / 43.59 MiB [--------------] 100.00% 1.02 MiB p/s 43s > kubelet: 110.64 MiB / 110.64 MiB [----------] 100.00% 1.36 MiB p/s 1m22s - Generating certificates and keys ... - Booting up control plane ... - Configuring RBAC rules ... * Configuring CNI (Container Networking Interface) ... * Verifying Kubernetes components... - Using image registry.cn-hangzhou.aliyuncs.com/google_containers/storage-provisioner:v5 * Enabled addons: storage-provisioner, default-storageclass * Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default root@cby:~#
验证
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
root@cby:~# kubectl get node NAME STATUS ROLES AGE VERSION minikube Ready control-plane 43s v1.24.3 root@cby:~# root@cby:~# kubectl get pod -A NAMESPACE NAME READY STATUS RESTARTS AGE kube-system coredns-7f74c56694-znvr4 1/1 Running 0 31s kube-system etcd-minikube 1/1 Running 0 43s kube-system kindnet-nt8nf 1/1 Running 0 31s kube-system kube-apiserver-minikube 1/1 Running 0 43s kube-system kube-controller-manager-minikube 1/1 Running 0 43s kube-system kube-proxy-ztq87 1/1 Running 0 31s kube-system kube-scheduler-minikube 1/1 Running 0 43s kube-system storage-provisioner 1/1 Running 0 41s root@cby:~#