Skip to content

delete webshow pod and recreate new one would not expose service in Kind cluster #3

@Colstuwjx

Description

@Colstuwjx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions