minikube 설정 테스트

2023. 4. 8. 22:12k8s

minikube start --driver=docker

minikube start --driver=docker --listen-address=0.0.0.0

# 결과
😄  minikube v1.29.0 on Ubuntu 22.04
✨  Using the docker driver based on existing profile
👍  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
🔄  Restarting existing docker container for "minikube" ...
🐳  Preparing Kubernetes v1.26.1 on Docker 20.10.23 ...
🔗  Configuring bridge CNI (Container Networking Interface) ...
🔎  Verifying Kubernetes components...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: storage-provisioner, default-storageclass
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

# 접속 성공
curl 192.168.xx.2:3xxxx
CLIENT VALUES:
client_address=10.244.0.1
command=GET
real path=/
query=nil
request_version=1.1
request_uri=http://192.168.xx.2:8080/

SERVER VALUES:
server_version=nginx: 1.10.0 - lua: 10001

HEADERS RECEIVED:
accept=*/*
host=192.168.xx.2:3xxxx
user-agent=curl/7.81.0
BODY:
-no body in request-

# 접속 실패
curl 192.168.xx.1:3xxxx
curl: (7) Failed to connect to 192.168.49.1 port 31201 after 0 ms: Connection refused

curl localhost:3xxxx
curl: (7) Failed to connect to localhost port 31201 after 0 ms: Connection refused

curl 127.0.0.1:3xxxx
curl: (7) Failed to connect to 127.0.0.1 port 31201 after 0 ms: Connection refused

 

'k8s' 카테고리의 다른 글

minikube 권한  (0) 2023.05.29
minikube subnet 변경  (0) 2023.04.30
miniKube LoadBalancer 설정(metallb)  (0) 2023.03.19
minikube echo server 외부 오픈  (0) 2023.03.18
minikube 명령어  (0) 2023.03.18