I am working on kubernetes API on python. We use the same namespace everytime. So I thought of setting the name form python itself. But I could not find any relevant documentation on how to set active namespace in kuebernetes API in python. Can anyone help me here? Thanks
Asked
Active
Viewed 505 times
1 Answers
-3
you can use python kubernetes client https://github.com/kubernetes-client/python . and use kubernetes's native command through client .
kubectl config set-context --current --namespace=development

ANISH KUMAR MOURYA
- 307
- 1
- 7