# minikube start
쿠버네티스 클러스터를 시작한다.
# minikube tunnel
로드밸런서의 EXTERNAL_IP가 <pending> 상태일 때
1
2
3
|
~ % kubectl -n openfaas get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
gateway-external LoadBalancer *.*.*.* <pending> 8080:32145/TCP 48m
|
cs |
다음과 같이 새로운 터미널 창에서 minikube tunnel을 실행시켜주면
1
2
3
4
5
6
|
~ % minikube tunnel
✅ Tunnel successfully started
📌 NOTE: Please do not close this terminal as this process must stay alive for the tunnel to be accessible ...
🏃 gateway-external 서비스의 터널을 시작하는 중
|
cs |
127.0.0.1 EXTERNAL_IP를 갖게 된다.
1
2
3
|
~ % kubectl -n openfaas get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
gateway-external LoadBalancer *.*.*.* 127.0.0.1 8080:32145/TCP 48m
|
cs |
# faas-cli list
openfaas 웹콘솔(127.0.0.1:8080/ui/)에서 INVOKE를 통해 생성한 함수를 조회하는 명령어.
웹콘솔 상에서 생성한 함수를 삭제하면, 더이상 목록에서 보이지 않는다.
1
2
3
|
~ % faas-cli list
Function Invocations Replicas
nodeinfo 1 1
|
cs |
당연히 openfaas를 더이상 사용하지 않으려면,
minikube tunnel 실행 종료 (^C)
minikube stop, minikube delete
하고 깔끔하게 끝내면 될듯하다.
'OpenFaaS' 카테고리의 다른 글
OpenFaaS 설치오류 Trouble Shooting (4) | 2024.03.19 |
---|