Welcome to the new Linux Foundation Forum!

Error in the Lab 10.1: "error: unable to upgrade connection: container not found ("ngix")"

When I did the step 11, I found the pod "thirdpage-77c4bc9757-bwbpx" not running. And then I finished step 12 and 13. When I tried to do step 14 , I got an error "error: unable to upgrade connection: container not found ("ngix")". Could you please help me to figure out this?

Thanks,

Wei

[email protected]:~$ kubectl create deployment thirdpage --image=ngix
deployment.apps/thirdpage created
[email protected]:~$ kubectl get po
NAME READY STATUS RESTARTS AGE
secondapp-5cf87c9f48-cxtj2 1/1 Running 0 20h
thirdpage-77c4bc9757-bwbpx 0/1 ImagePullBackOff 0 14s

[email protected]:~$ kubectl expose deployment thirdpage --type=NodePort --port=80
service/thirdpage exposed
[email protected]:~$ kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 443/TCP 5d4h
secondapp NodePort 10.98.205.187 80:32497/TCP 20h
thirdpage NodePort 10.102.251.101 80:32023/TCP 4s

[email protected]:~$ kubectl exec -it thirdpage-77c4bc9757-bwbpx -- /bin/bash
error: unable to upgrade connection: container not found ("ngix")

Best Answer

Answers

  • zhangwezhangwe Posts: 27

    Yes, my image name is not right. Thank you very much for your help.

Sign In or Register to comment.