1 개요[ | ]
- Error from server (BadRequest): Upgrade request required
Console
Copy
root@wsl:~# kubectl get pod
NAME READY STATUS RESTARTS AGE
hello-74fd88c57c-kbfpg 1/1 Running 0 41h
Console
Copy
root@wsl:~# kubectl exec -it hello-74fd88c57c-kbfpg -- sh
Error from server (BadRequest): Upgrade request required
Console
Copy
root@wsl:~# kubectl exec -it hello-74fd88c57c-kbfpg -v=9 -- sh
I1226 17:42:13.755968 3600 loader.go:395] Config loaded from file: /root/.kube/config
I1226 17:42:13.760425 3600 round_trippers.go:466] curl -v -XGET -H "Accept: application/json, */*" -H "User-Agent: kubectl/v1.28.2 (linux/amd64) kubernetes/89a4ea3" -H "Authorization: Bearer <masked>" 'https://localhost/api/v1/namespaces/default/pods/hello-74fd88c57c-kbfpg'
I1226 17:42:13.765360 3600 round_trippers.go:510] HTTP Trace: Dial to tcp:10.20.30.40:5060 succeed
...
I1226 17:42:14.679897 3600 helpers.go:246] server response object: [{
"metadata": {},
"status": "Failure",
"message": "Upgrade request required",
"reason": "BadRequest",
"code": 400
}]
Error from server (BadRequest): Upgrade request required
2 같이 보기[ | ]
- kubectl exec -it
- Unable to use a TTY - input is not a terminal or the right kind of file
- Unable to connect to the server: x509: certificate signed by unknown authority
3 참고[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.