Minikube

Table of Contents

Create

  • https://minikube.sigs.k8s.io/docs/start/
▒ minikube start
▒ minikube start --cpus=2 --memory=4096 --driver=virtualbox
  • api-server Cross-Domain 허용
▒ minikube --extra-config apiserver.cors-allowed-origins=.* start

Hyperkit 사용 설치

  • hyperkit 설치
▒ brew install hyperkit

▒ curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit \
&& sudo install -o root -g wheel -m 4755 docker-machine-driver-hyperkit /usr/local/bin/
  • minikube 클러스터 생성
▒ minikube start --memory=10240 --cpus=8 --disk-size=30g -p knative \
  --kubernetes-version=v1.20.0 \
  --vm-driver=hyperkit

Addons

▒ minikube addons list

▒ minikube addons enable metrics-server

Extra config

▒ minikube start --memory=10240 --cpus=8 --disk-size=30g -p extra \
  --extra-config=apiserver.enable-admission-plugins="LimitRanger,NamespaceExists,NamespaceLifecycle,ResourceQuota,ServiceAccount,DefaultStorageClass,MutatingAdmissionWebhook"

Tunneling

  • 터널링 시작
▒ minikube tunnel
▒ sudo route -n add 10.0.0.0/8 $(minikube ip)
  • 터널링 종류
▒ sudo route -n delete 10.0.0.0/8
▒ minikube tunnel --cleanup

Troubleshooting

  • minikube start > minikube api server version match failed: server version: the server has asked for the client to provide credentials
    • 아래와 같이 이전 profile 을 모두 삭제하고 재 시작
▒ minikube delete --all --purge
▒ minikube start

posted at 2022/03/18 09:42