Kubernetes 이야기

minikube 설치 본문

Kubernetes/일반

minikube 설치

kmaster 2022. 10. 3. 14:54
반응형

minikube는 macOS, Linux 및 Windows에서 로컬 Kubernetes 클러스터를 빠르게 설정할 수 있어, 개발환경에서 많이 사용된다.

 

설치

 

minikube 다운로드

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

minikube start

# minikube start  --kubernetes-version=v1.22.15 --driver='docker' --cni=calico --force
# minikube addons enable gvisor

metallb 설치

# minikube addons enable metallb

#minikube ip
192.168.49.2

# minikube addons configure metallb
-- Enter Load Balancer Start IP: 192.168.49.2
-- Enter Load Balancer End IP: 192.168.49.2
  - Using image docker.io/metallb/speaker:v0.9.6
  - Using image docker.io/metallb/controller:v0.9.6
* metallb 이 성공적으로 설정되었습니다

설치 내역

# k get po -A
NAMESPACE        NAME                                       READY   STATUS              RESTARTS        AGE
default          otomi-fwvft                                0/1     ContainerCreating   0               29s
kube-system      calico-kube-controllers-58497c65d5-gr4s6   1/1     Running             0               5m47s
kube-system      calico-node-2p29b                          1/1     Running             0               5m47s
kube-system      coredns-78fcd69978-qrzl6                   1/1     Running             0               5m47s
kube-system      etcd-minikube                              1/1     Running             0               6m
kube-system      kube-apiserver-minikube                    1/1     Running             0               5m59s
kube-system      kube-controller-manager-minikube           1/1     Running             0               5m59s
kube-system      kube-proxy-f62xm                           1/1     Running             0               5m47s
kube-system      kube-scheduler-minikube                    1/1     Running             0               5m59s
kube-system      storage-provisioner                        1/1     Running             1 (5m17s ago)   5m57s
metallb-system   controller-5fd6788656-b6hcg                1/1     Running             0               74s
metallb-system   speaker-5tcj9                              1/1     Running             0               74s

삭제방법

# minikube delete --all

 

반응형

'Kubernetes > 일반' 카테고리의 다른 글

OpenSaerch 설치  (0) 2022.11.19
Clusterpedia로 멀티 클러스터 조회하기  (0) 2022.11.12
kubernetes 1.24에서 service accounts와 secret  (0) 2022.10.01
kubectl 활용 팁  (0) 2022.09.11
Kubernetes EndpointSlices  (0) 2022.09.06
Comments