sudo yum update
sudo yum install yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce
sudo systemctl start docker
sudo systemctl enable docker
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube
mv minikube /usr/bin
minikube start --vm-driver=none
만약 아래와 같은 에러가 나오면
Exiting due to GUEST_MISSING_CONNTRACK: Sorry, Kubernetes 1.21.2 requires conntrack to be installed in root's path
yum install conntrack
minikube start --vm-driver=none
vi ~/.bashrc
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias kubectl='minikube kubectl -- '
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
bash
kubectl get pods
minikube addons list
minikube addons enable metric-server
혹시 아래와 같은 에러가 발생하면
Exiting due to MK_ADDON_ENABLE: run callbacks: metric-server is not a valid addon
오타가 난것이니 잘 보고 다시금 해보실..
addons list에서 나오는 항목을 복사해서 사용하는것이 좋을것~~으로 생각
minikube addons enable ingress
minikube addons enable metalb
$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
$ chmod 700 get_helm.sh
$ ./get_helm.sh
kubectl apply -f https://github.com/jetstack/cert-manager/releases/latest/download/cert-manager.yaml
참고 : docker 프리빌리지~~나올땐
sudo groupadd docker
sudo usermod -aG docker $USER
- Re-Login or Restart the Server