PostList

레이블이 [Issues] Istio인 게시물을 표시합니다. 모든 게시물 표시
레이블이 [Issues] Istio인 게시물을 표시합니다. 모든 게시물 표시

2019년 5월 28일 화요일

denied: requested access to the resource is denied


Problem:

denied: requested access to the resource is denied

Solution:
docker login

2019년 5월 22일 수요일

productpage cannot be accessed and return 503 or 000


Problem:

curl -o /dev/null -s -w "%{http_code}\n" http://${GATEWAY_URL}/productpage

503 or 000

# When visit the GATEWAY_URL
no healthy upstream

Reason:
Istio Containers / BookInfo Pods were initializing.

Solution: 
#check pods and wait untill all pods running
kubectl get pods -n istio-system
kubectl get pods

2019년 4월 4일 목요일

Error: could not read valid configmap "istio" from namespace "istio-system": configmaps "istio" not found - Use --meshConfigFile or re-run kube-inject with `-i and ensure valid MeshConfig exists

Problem:

Error: could not read valid configmap "istio" from namespace "istio-system": configmaps "istio" not found - Use --meshConfigFile or re-run kube-inject with `-i <istioSystemNamespace> and ensure valid MeshConfig exists

Solution:
...?

2019년 3월 27일 수요일

Error from server (AlreadyExists): deployments.apps "ubuntu" already exists


Problem:
Haans-MacBook-Pro:istio-1.0.6 haanmo$ kubectl run -it ubuntu --image ubuntu:18.04 bash
kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead.

Error from server (AlreadyExists): deployments.apps "ubuntu" already exists


Solution:
1. remove ubuntu image

kubectl delete deployment ubuntu

2. Run kubectl run -it ubuntu --image ubuntu:18.04 bash again

Haans-MacBook-Pro:istio-1.0.6 haanmo$ kubectl run -it ubuntu --image ubuntu:18.04 bash
kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead.

If you don't see a command prompt, try pressing enter.

root@ubuntu-6d97966568-v6twd:/#

Ubuntu is removed and redeployed.

check
kubectl get deployment

Following Problems:
Error from server (AlreadyExists): deployments.apps "ubuntu" already exists is removed.
However, The other errors are not removed.



Unable to connect to the server: dial tcp 192.168.99.101:8443: i/o timeout

Problem:
Haans-MacBook-Pro:istio-1.0.6 haanmo$ kubectl get pods

Unable to connect to the server: dial tcp 192.168.99.101:8443: i/o timeout

Unable to connect to the server: net/http: TLS handshake timeout

Got this issue when I use Starbuck Wifi.


Temporal Solution: (Not sure why it works. )

1. Changed Starbucks wifi to mobile hot spot.
2. restart minikube

minikube start --memory 6144
3. wait several miniutes.

Just in case, check Docker Demon running
If not running, check below.
https://haanmo.blogspot.com/search?q=Cannot+connect+to+the+Docker+daemon+