Closed as not planned
Description
What Happened?
Is it possible to have stable minikube cluster created with the following steps
- Create a VM instance on Google Compute Engine
- On ubuntu 20.04 LTS, start minikube (--api-server=VM_IP is passed in args)
- Deploy services
- Stop minikube
- Turn of GCE VM
- Create a disk image
- Create a new instance out of the created disk image
- Restart minikube with
minikube start
(--api-server=new VM_IP is passed in args)
After doing above steps, I can see my service pods up and running, but some of the kube-system pods
go into error state. Once the pods enter error state, deleting the pods, does not fix the problem
Is there a way to recover this cluster?
$ kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
ingress-nginx ingress-nginx-admission-create-sw8gt 0/1 Completed 0 28d
ingress-nginx ingress-nginx-admission-patch-khgpv 0/1 Completed 0 28d
ingress-nginx ingress-nginx-controller-5fc9586f46-hl2v9 1/1 Running 0 28d
kube-system coredns-558bd4d5db-bz2tz 0/1 Error 0 28d
kube-system etcd-minikube 1/1 Running 1 28d
kube-system kube-apiserver-minikube 0/1 Running 1 28d
kube-system kube-controller-manager-minikube 0/1 Running 2 28d
kube-system kube-proxy-557r6 0/1 Error 0 28d
kube-system kube-scheduler-minikube 1/1 Running 1 28d
kube-system storage-provisioner 0/1 Error 1 ### 28d
Attach the log file
* ==> storage-provisioner [51246a3fb3be] <==
* I0909 09:57:17.937640 1 storage_provisioner.go:116] Initializing the minikube storage provisioner...
I0909 09:57:17.951859 1 storage_provisioner.go:141] Storage provisioner initialized, now starting service!
I0909 09:57:17.952583 1 leaderelection.go:243] attempting to acquire leader lease kube-system/k8s.io-minikube-hostpath...
I0909 09:57:35.490100 1 leaderelection.go:253] successfully acquired lease kube-system/k8s.io-minikube-hostpath
I0909 09:57:35.490163 1 event.go:282] Event(v1.ObjectReference{Kind:"Endpoints", Namespace:"kube-system", Name:"k8s.io-minikube-hostpath", UID:"d3cb096e-3877-4319-8669-5d648956ae54", APIVersion:"v1", ResourceVersion:"2399198", FieldPath:""}): type: 'Normal' reason: 'LeaderElection' minikube_803f2b0d-6636-4b15-9fab-01d23ee5c582 became leader
I0909 09:57:35.490255 1 controller.go:835] Starting provisioner controller k8s.io/minikube-hostpath_minikube_803f2b0d-6636-4b15-9fab-01d23ee5c582!
I0909 09:57:35.592663 1 controller.go:884] Started provisioner controller k8s.io/minikube-hostpath_minikube_803f2b0d-6636-4b15-9fab-01d23ee5c582!
* ==> kube-scheduler [f9cddea0fb85] <==
* I0804 11:45:32.015790 1 serving.go:347] Generated self-signed cert in-memory
I0804 11:45:32.365669 1 requestheader_controller.go:169] Starting RequestHeaderAuthRequestController
I0804 11:45:32.365705 1 shared_informer.go:240] Waiting for caches to sync for RequestHeaderAuthRequestController
I0804 11:45:32.365714 1 configmap_cafile_content.go:202] Starting client-ca::kube-system::extension-apiserver-authentication::client-ca-file
I0804 11:45:32.365737 1 shared_informer.go:240] Waiting for caches to sync for client-ca::kube-system::extension-apiserver-authentication::client-ca-file
I0804 11:45:32.365759 1 configmap_cafile_content.go:202] Starting client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file
I0804 11:45:32.365765 1 shared_informer.go:240] Waiting for caches to sync for client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file
I0804 11:45:32.365907 1 secure_serving.go:197] Serving securely on 127.0.0.1:10259
I0804 11:45:32.365966 1 tlsconfig.go:240] Starting DynamicServingCertificateController
I0804 11:45:32.466200 1 shared_informer.go:247] Caches are synced for client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file
I0804 11:45:32.466246 1 shared_informer.go:247] Caches are synced for RequestHeaderAuthRequestController
I0804 11:45:32.466327 1 shared_informer.go:247] Caches are synced for client-ca::kube-system::extension-apiserver-authentication::client-ca-file
Can share more logs if at all using the minikube cluster from a vm created out of image is possible
Operating System
Ubuntu
Driver
Docker