How To Handle Minikube(Cheatsheet)-3? K8s – Part: 9

0
49
views
How To Handle Minikube(Cheatsheet)-3? K8s - Part: 9

Missed the previous cheatsheets? Here are the links:
Cheatsheet-1
Cheatsheet-2

This is last but the least Cheatsheet – 3

COMMAND 25: To Get the URL for any service

Syntax: minikube service –url SERVICE_NAME

This is actually <nodeip:port>

COMMAND 26: Get Cluster IP and port

COMMAND 27: To Get Access deployed service

Syntax: minikube service <srv-name>

It will pop up in your browser is this case as we have deployed Nginx




COMMAND 28: To get the number of running pods

COMMAND 29: To scale any Running deployment

COMMAND 30: To get attach and get inside any pod

Section 3: Clean Up

In this section, we will learn about clean up your deployments.

COMMAND 31: To Delete And Deployment

COMMAND 32: To Delete Service




Section 4: Minikube Troubleshoot

This section is related to basic troubleshooting of the minikube setup.

ISSUE 1: Sometimes IP of Minikube get changed so if somehow it’s not working then check by running below command.

The above command says that kubectl: Misconfigured: pointing to stale minikube-vm

ISSUE 2: When it says there is network issue while start Minikube like below issue

Solution:

– Should see that minikube-net is inactive. Now run below command on virsh shell

If got successful then exit virsh and start minikube

If you get an error message about “Network is already in use by interface virbr1” or something similar then




Should now start-up

ISSUE 3: When Minikube is not starting and get hang on getting started

Solution: 

Suggestion: You can also use cluster dump this really helpful in troubleshooting for Minikube
To Dump All the Cluster Info

You may use cat command to see all the information.

Section 5: Important File Directory Information

Critical minikube folder /var/lib/localkube, /var/lib/docker
Check minikube config in your host OS desktop ~/.minikube/machines/minikube/config.json

This bring us the end of the minikube and minikube command cheat sheet.

Kubernetes Series Links:

Understanding Kubernetes Concepts RHEL/CentOs K8s Part-1
Understanding Kubernetes Concepts RHEL/CentOs k8s: Part-2
How to Install Kubernetes on CentOS/RHEL k8s?: Part-3
How to Install Kubernetes on CentOS/RHEL k8s?: Part-4
How To Bring Up The Kubernetes Dashboard? K8s-Part: 5
How to Run Kubernetes Cluster locally (minikube)? K8s – Part: 6
How To Handle Minikube(Cheatsheet)-3? K8s – Part: 7
How To Handle Minikube(Cheatsheet)-3? K8s – Part: 8
How To Handle Minikube(Cheatsheet)-3? K8s – Part: 9