Skip to content

kubectl exec return error: unable to upgrade connection: pod does not exist /sig-contributor-experience-bugs #63702

@CrisMon-01

Description

@CrisMon-01

If everyone else is running a cluster with kubeadm on virtual machine i think this lectures is a must have because i have spend same days to solve this error:
error: unable to upgrade connection: pod does not exist
or this
kubectl logs
Error from server (NotFound): the server could not find the requested resource
and i haven't find samethink about it on the kubernetes guide or on the kubeadm issue traker.
If you are running same virtualmachine you had to do on the Master add this at the kubeadm init:
--apiserver-advertise-address=<ip-address>
and on the other nodes in the config file: /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
you had to add this other ambient variables:
Environment="KUBELET_EXTRA_ARGS=--node-ip=<worker IP address>"
so restart the kubelet services and that had permit ot me to connect to pod schedule on other nodes that are virtual machine and are not exposed to the internet but are linked to the real machine where they are running.
This is a little tips from my experience working with kubernetes

@kubernetes/sig-contributor-experience-bugs

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.sig/cliCategorizes an issue or PR as relevant to SIG CLI.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions