-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed as not planned
Closed as not planned
Copy link
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Description
What happened (please include outputs or screenshots):
Created a kubeconfig file stored in a different folder than the default one and I get the following error:
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to get client due to HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6f87772f10>: Failed to establish a new connection: [Errno 111] Connection refused'))"}
What you expected to happen:
A successful request.
How to reproduce it (as minimally and precisely as possible):
pip install kubernetes==12.0.1
- create a kubeconfig in another folder (changing the port if possible)
- set
K8S_AUTH_KUBECONFIG
to the new kubeconfig file path - try to run a simple integration, such as creating a namespace
- the error should show up
Anything else we need to know?
I am using the k8s ansible module but it works if I use an older version of the library (11.0.0).
Environment:
- Kubernetes version (
kubectl version
):
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.4", GitCommit:"d360454c9bcd1634cf4cc52d1867af5491dc9c5f", GitTreeState:"clean", BuildDate:"2020-11-11T13:17:17Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
Kind Container: latest-1.16
- OS (e.g., MacOS 10.13.6): Linux
- Python version (
python --version
): Python 3.7.7 - Python client version (
pip list | grep kubernetes
): -12.0.1
sownak, fnkr, emanuelflp, bergmannf, nightdesoul and 23 more
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.