kubernetes versions <34.1.0 don't pin their urllib3 version, but they are incompatible with the newly-release urllib3 2.6.0. This causes an AttributeError when using kubernetes. See kubernetes-client/python#2477.
Workaround:
pip install urllib3=2.3.0
Impact:
It's relatively hard to hit this scenario, since a new installation of skypilot will likely use kubernetes 34.1.0 and urllib3 2.3.0, which works. However, if urllib3 2.6.0 is already existing in the venv, uv pip install skypilot[kubernetes] will resolve to kubernetes 33.1.0 instead of using 34.1.0 and downgrading urllib3. (Note: pip is not affected, only uv pip.)
We recommend installing azure-cli separately when using uv, which will install urllib3 2.6.0. So you can hit this using our recommended install technique:
uv pip install --prerelease allow azure-cli
uv pip install skypilot[kubernetes] # or [azure,kubernetes], or [all]
It seems also only certain actions (like querying resources that don't exist?) are affected.