Docker Desktop 설치
Kubectl 설치
macOS에서 Homebrew를 사용하여 설치
brew install kubectl
버전 확인
kubectl version --client
Client Version: v1.29.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Minikube 설치
설치할 옵션 선택
brew install minikube
minikube Cluster 생성
minikube start
kubernetes 상태 확인
kubectl cluster-info
Kubernetes control plane is running at https://127.0.0.1:55345
CoreDNS is running at https://127.0.0.1:55345/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
kubernetes node 정보 확인
kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
minikube Ready control-plane 5m49s v1.28.3 192.168.49.2 <none> Ubuntu 22.04.3 LTS 6.6.16-linuxkit docker://24.0.7
모든 pods 정보
kubectl get all -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system pod/coredns-5dd5756b68-k6nxd 1/1 Running 0 14m
kube-system pod/etcd-minikube 1/1 Running 0 14m
kube-system pod/kube-apiserver-minikube 1/1 Running 0 14m
kube-system pod/kube-controller-manager-minikube 1/1 Running 0 14m
kube-system pod/kube-proxy-4478d 1/1 Running 0 14m
kube-system pod/kube-scheduler-minikube 1/1 Running 0 14m
kube-system pod/storage-provisioner 1/1 Running 1 (13m ago) 14m
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 14m
kube-system service/kube-dns ClusterIP 10.96.0.10 <none> 53/UDP,53/TCP,9153/TCP 14m
NAMESPACE NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
kube-system daemonset.apps/kube-proxy 1 1 1 1 1 kubernetes.io/os=linux 14m
NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE
kube-system deployment.apps/coredns 1/1 1 1 14m
NAMESPACE NAME DESIRED CURRENT READY AGE
kube-system replicaset.apps/coredns-5dd5756b68 1 1 1 14m
'OS > mac OS' 카테고리의 다른 글
VMwareFusion에서 Rocky Linux 8 GUI 설치하기 (0) | 2024.05.31 |
---|---|
[Docker] Mac M1에 Docker Desktop 설치 (0) | 2024.03.05 |
Mac M1에서 VirtualBox 설치 방법, Ubuntu 22.04 설치 (2) | 2024.02.27 |
mac OS에서 telnet 명령어 설치 방법 (0) | 2024.02.13 |