![[featured]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL_a6om2ApWnf-1J62a08gJvQPdx-YMqdmKWdYt2kIxnK38EzY3r79E1k2RR8X-u5DTb6kPTPTaTjiHig3VN3K1EW_YS23UXquvAjwNfhP39XjKmerPk2fi7PlHT3-OFNUfpF9l-_i0wQ/s640/carbon+%25289%2529.png)
This article will show you how to install the latest versions of both, and we'll see how to use it in another article in the future. There are lots of useful YouTube videos that can start as soon as you install them.
Install kubectl on Linux
Now, this will not matter if you are running Fedora, Ubuntu, CentOS or any other Linux distribution when you install the Curl.
To install the latest version of kubectl in Linux, just open the device and download the latest version using curl. You can do this as a regular user.
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
Once downloaded, you'll need to make it executable.
chmod +x ./kubectl
Then simply move it somewhere in your $ PATH so you can write your name without typing the full path. You will need sudo for this if you move it to / usr / local / bin /.
sudo mv ./kubectl /usr/local/bin/
You can also move it to another PATH $ site, probably from your main directory. For a complete list of your PATH $ sites, just type echo $ PATH into your device.
After you move it, you can now test whether it works.
kubectl
You should see the help file appear because it does not give you any arguments.
Here's a quick overview of the process:
VirtualBox
To install the minikube, you must make sure that Virtualbox is installed. If you do not have it, you can download it for distribution here:
https://www.virtualbox.org/wiki/Linux_Downloads
www.virtualbox.org
Install minikube in Linux
This is very similar to installing kubectl. Again, it does not matter what flavor Linux you are using.
Now that you have installed Virtualbox, you can use Curl to download the latest version of the minikube.
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
Then, make it executable with Chmod.
chmod +x ./minikube
Finally, take it somewhere in PATH $
sudo mv ./minikube /usr/local/bin/
To start minikube, type
minikube start
.
Once it's started (it may take some time, but it will be updated all the way), type kubectl, and get everything, and you might see something similar to this output:
[[email protected] ~]$ kubectl get all
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 88s
To turn off the minikube, simply type minikube stop.
I hope this is useful. We will continue with some basics of kubernetes (k8s) to get started!
Source and thanks : Linux.org
- [message]
- ##laptop## Support
- Support Us by Disable your ad block.
- thank you
COMMENTS