You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been setup a k8s cluster using kind, and create webshow deployment via:
curl -sSL https://mirrors.chaos-mesh.org/v0.9.1/web-show/deploy.sh | sh
Things works well at the first time:
$ curl -sSL https://mirrors.chaos-mesh.org/v0.9.1/web-show/deploy.sh | sh
service/web-show unchanged
deployment.apps/web-show created
Waiting for pod running
$ curl -I http://localhost:8081
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 2157
Content-Type: text/html; charset=utf-8
Last-Modified: Wed, 15 Apr 2020 08:40:20 GMT
Date: Thu, 17 Sep 2020 12:44:48 GMT
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
web-show-7b477b5c6-47wg7 1/1 Running 0 117s
After delete the pod by manually, it is broken:
$ kubectl delete pod web-show-7b477b5c6-47wg7
pod "web-show-7b477b5c6-47wg7" deleted
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
web-show-7b477b5c6-hfc5p 0/1 ContainerCreating 0 3s
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
web-show-7b477b5c6-hfc5p 1/1 Running 0 91s
$ curl -I http://localhost:8081
curl: (56) Recv failure: Connection reset by peer
The text was updated successfully, but these errors were encountered:
After dive into the deploy.sh, I found it should be port-forward issue, I've been typed the forward cmd by manually and do delete pod after one minute, and I got the following error:
kubectl port-forward --address 0.0.0.0 svc/web-show 8081:8081
Forwarding from 0.0.0.0:8081 -> 8081
Handling connection for 8081
Handling connection for 8081
E0918 12:01:56.332646 4718 portforward.go:400] an error occurred forwarding 8081 -> 8081: error forwarding port 8081 to pod 06eab838c95aa75396c720b02ff94ef6f2f203e549a4f0b48e58cce8a3c7ec76, uid : network namespace for sandbox "06eab838c95aa75396c720b02ff94ef6f2f203e549a4f0b48e58cce8a3c7ec76" is closed
I've been setup a k8s cluster using kind, and create webshow deployment via:
Things works well at the first time:
After delete the pod by manually, it is broken:
The text was updated successfully, but these errors were encountered: