![]() ![]() :~/Desktop$ minikube start –driver=docker I got these below errors before setup is completed. please also add either do we also need to install docker and drivers,podman,vmware separately? Thanks a lot for stepwise detail explanation. This helped me lot to run minikube on ubuntu Hypervision. Very detailed installation and setup about minikube. Please don’t hesitate to share your feedback and comments.Īlso Read: How to Configure Static IP Address on Ubuntu 22.04 LTS That’s all from this tutorial, I hope you have learned how to install Minikube on Ubuntu 22.04 & 22.04. In case you want to start the minikube with higher resource like 8 GB RM and 4 CPU then execute following commands one after the another. To Start the minikube, run $ minikube start To delete the minikube, run $ minikube delete To stop the minikube, run $ minikube stop Great, above confirms that NGINX application is accessible. Now try to access your nginx based deployment using above url, $ curl Use below command to get your service url, $ minikube service my-nginx-svc -url Output of above commands would look like below:Įxpose the deployment using following command, $ kubectl expose deployment my-nginx -name=my-nginx-svc -type=NodePort -port=80 Run following kubectl command to verify deployment status $ kubectl get deployments.apps my-nginx $ kubectl create deployment my-nginx -image=nginx Run below kubectl command to install nginx based deployment. To verify the minikube installation, let’s try to deploy nginx based deployment. To enable Ingress controller addon, run $ minikube addons enable ingress It will open the Kubernetes dashboard in the web browser. Let’s assume we want to enable and access kubernetes dashboard, run $ minikube dashboard If you wish to enable any addons run the below minikube command, Output of above commands would like below:īy default, only couple of addons are enabled during minikube installation, to see the addons of minikube, run the below command. Run following kubectl command to verify the Kubernetes version, node status and cluster info. Run below minikube command to check status, :~$ minikube status Perfect, above confirms that minikube cluster has been configured and started successfully. In case you want to start minikube with customize resources and want installer to automatically select the driver then you can run following command, $ minikube start -addons=ingress -cpus=2 -cni=flannel -install-addons=true -kubernetes-version=stable -memory=6g Now verify the kubectl version $ kubectl version -o yamlĪs we are already stated in the beginning that we would be using docker as base for minikue, so start the minikube with the docker driver, run $ minikube start -driver=docker Once kubectl is downloaded then set the executable permissions on kubectl binary and move it to the path /usr/local/bin. $ curl -LO `curl -s `/bin/linux/amd64/kubectl Use below curl command to download latest version of kubectl. It is used for managing deployments, service and pods etc. Kubectl is a command line utility which is used to interact with Kubernetes cluster. Note: At the time of writing this tutorial, latest version of minikube was v1.30.1. Verify the minikube version $ minikube versionĬommit: 08896fd1dc362c097c925146c4a0d0dac715ace0 Once the binary is downloaded, copy it to the path /usr/local/bin and set the executable permissions on it $ sudo install minikube-linux-amd64 /usr/local/bin/minikube Use the following curl command to download latest minikube binary, $ curl -LO Install the following minikube dependencies by running beneath command, $ sudo apt install -y curl wget apt-transport-https Step 3) Download Minikube Binary $ sudo reboot Step 2) Install Minikube dependencies Once all the updates are installed then reboot your system once. Step 1) Apply updatesĪpply all updates of existing packages of your system by executing the following apt commands, $ sudo apt update -y Without any further delay, let’s deep dive into the Minikube Installation steps on Ubuntu 22.04 and 20.04 LTS. How to Install Docker on Ubuntu 22.04 / 20.04 LTS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |