python client api?
#7769
-
Hi all, I was wondering whether K3s supports the Python client API such as the following? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
brandond
Sep 9, 2024
Replies: 1 comment 2 replies
-
I tried to run the example script inside a k3s pod and it couldn't reach the kubernetes API. Running the same python script in minikube pod and it works out of the box. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://docs.k3s.io/quick-start#install-script
If you're using other clients, you probably need to
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
, or pass the path via the appropriate CLI flag.This is just basic Kubernetes client stuff.