Questions tagged [kubernetes-python-client]

93 questions
-1
votes
1 answer

Any python client method available to get/set env variables of kubernetes deployment

Need to get/set the env variables of deployment by using python client methods. kubectl describe deploy command or client.read_namespaced_deployment() method doesn't return the env of container in the pods which belongs to deployment. Can able…
-1
votes
1 answer

How to delete a k8s deployment using k8s python client?

Is there a way to delete a k8s deployment using python? the official k8s python client lacks this feature, you can only delete pods & services I tried doing it using [subprocess] but I'd like to explore other options def…
-1
votes
1 answer

I can't create services account via python

I try to create a service account via kubernetes client of Python, but in the post return the dict with the manifest, but do not create the service account. My code is : import kubernetes.client from kubernetes import client, config from…
1 2 3 4 5 6
7