Sunday, October 16, 2022

Install Minikube with Docker Engine

Install docker engine

```

yum install -y yum-utils
yum-config-manager     --add-repo     https://download.docker.com/linux/centos/docker-ce.repo
yum remove docker
yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin


Install minikube

https://minikube.sigs.k8s.io/docs/start/

```

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube

Install kubectl

https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/

Set environment variables if the minikube runs behind proxy

export HTTP_PROXY=http://<proxy hostname:port>
export HTTPS_PROXY=https://<proxy hostname:port>
export NO_PROXY=localhost,127.0.0.1,192.168.49.0/24

or run below command on fly
```
export no_proxy=$no_proxy,$(minikube ip)

Open firewall rule for port 8443

 ```
firewall-cmd --permanent --add-port=8443/tcp

Start minikube

```
minikube start --driver=docker 


List porfiles
```
minikube profiles list

Delete existing profile
```
minikube delete

Delete existing profile with force
```
minikube delete --purge --all

Get cluster information
```
kubectl cluster-info

No comments:

Post a Comment