Skip to content

Instantly share code, notes, and snippets.

@mariotpc
Last active March 15, 2021 16:22
Show Gist options
  • Save mariotpc/8ec5f8076dbf8a7d282c0db756f7e324 to your computer and use it in GitHub Desktop.
Save mariotpc/8ec5f8076dbf8a7d282c0db756f7e324 to your computer and use it in GitHub Desktop.
Minikube-ARM64
Mandatory set it - very bottom of the sudoers file
*******************************************************************************
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d
username (989sd898d ) ALL=(ALL) NOPASSWD: /usr/bin/podman
Was using podman instead docker backend.
******************************************
minikube start --driver=podman
[989sd898d@rpi ~]$ minikube config set driver podman
❗ These changes will take effect upon a minikube delete and then a minikube start
[989sd898d@rpi ~]$ minikube delete
πŸ”₯ Deleting "minikube" in podman ...
πŸ”₯ Removing /home/989sd898d/.minikube/machines/minikube ...
πŸ’€ Removed all traces of the "minikube" cluster.
[989sd898d@rpi ~]$ minikube start --driver=podman
πŸ˜„ minikube v1.18.1 on Oracle 8.3 (arm64)
✨ Using the podman driver based on user configuration
πŸ‘ Starting control plane node minikube in cluster minikube
πŸ”₯ Creating podman container (CPUs=2, Memory=2200MB) ...
> 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: 34.50 MiB / 34.50 MiB [---------------] 100.00% 1.23 MiB p/s 29s
> kubectl: 35.44 MiB / 35.44 MiB [---------------] 100.00% 1.10 MiB p/s 33s
> kubelet: 100.57 MiB / 100.57 MiB [-------------] 100.00% 2.56 MiB p/s 40s
β–ͺ Generating certificates and keys ...
β–ͺ Booting up control plane ...
β–ͺ Configuring RBAC rules ...
πŸ”Ž Verifying Kubernetes components...
❗ Executing "sudo -n podman container inspect minikube --format={{.State.Status}}" took an unusually long time: 2.644209147s
β–ͺ Using image gcr.io/k8s-minikube/storage-provisioner:v4
🌟 Enabled addons: storage-provisioner, default-storageclass
πŸ’‘ kubectl not found. If you need it, try: 'minikube kubectl -- get pods -A'
πŸ„ Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
[989sd898d@rpi ~]$
[989sd898d@rpi ~]$ kubectl get po -A
-bash: kubectl: command not found <---- ERROR
U can use
********************
[989sd898d@rpi ~]$ minikube kubectl -- get po -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-74ff55c5b-l8qpb 1/1 Running 0 15m
kube-system etcd-minikube 1/1 Running 0 15m
kube-system kube-apiserver-minikube 1/1 Running 0 15m
kube-system kube-controller-manager-minikube 1/1 Running 0 15m
kube-system kube-proxy-bpm9m 1/1 Running 0 15m
kube-system kube-scheduler-minikube 1/1 Running 0 15m
kube-system storage-provisioner 1/1 Running 0 15m
[989sd898d@rpi ~]$ minikube dashboard
πŸ”Œ Enabling dashboard ...
β–ͺ Using image kubernetesui/dashboard:v2.1.0
β–ͺ Using image kubernetesui/metrics-scraper:v1.0.4
πŸ€” Verifying dashboard health ...
πŸš€ Launching proxy ...
πŸ€” Verifying proxy health ...
πŸŽ‰ Opening http://127.0.0.1:43877/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/ in your default browser...
πŸ‘‰ http://127.0.0.1:43877/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment