I cannot find the python function to delete a kubernetes deployment. I can delete the pods but that would only cause the deployment to restart the pods again. Basically I want the equivalent of kubectl delete deployment deployment1 --namespace nms.
How to delete a kubernetes deployment using kubernetes python client?
598 Views Asked by Sanjeeb Subedi At
1
There are 1 best solutions below
Related Questions in KUBERNETES
- How to know a Pod's own IP address from inside a container in the Pod?
- Who will decide the "specified number of pods" for replication controller in kubernetes?
- Access other containers of a pod in Kubernetes
- Kubernetes cluster using Vagrant not working after restart
- kubectl not installed with gcloud SDK
- How do I access the Kubernetes api from within a pod container?
- Exposing several services with Vagrant and Kubernetes on my own server
- Does Kubernetes provision new VMs for pods on my cloud platform?
- Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?
- Kubernetes - kubectl exec bash - session drop and line width
- Google Container Engine (GKE): "Hello Wordpress" tutorial not working (ERR_CONNECTION_REFUSED)
- Kubernetes Pod Creation Speed
- How can i set max count of pods for replication-controller per node?
- Is there a way to tell kubernetes to update your containers?
- Postgres with Kubernetes and persistentDisk
Related Questions in AZURE-AKS
- Azure Release Pipeline: Docker Image Tag will not be replaced even after adding step to replace image tag
- Increase max file upload size in K8s Cluster deployed with Azure (Project in ASP.NET Core w/ C# and React)
- Does Kubernetes create an external load balancer for every LoadBalancer service, or does it just reuse the same one?
- Azure kubernetes - writing logs on the console for production application?
- AKS : Kubernetes coreDNS fails to resolve headless services
- Azure ML - AKS Service deployment unable to handle concurrent requests despite auto scaling enabled
- AKS: MongoError: not master
- AKS Cluster Created has no External IP Address
- Avoid recreation of Kubernetes cluster when upgrading web api
- Azure kubernetes - register services in Azure API management?
- Azure kubernetes and Azure API management : Azure AD authentication?
- Cannot access file inside Kubernetes cluster that has load balancer externally
- How do I measure my pods startup, min and max CPU and Memory
- What is the node hardware requirements and kubernetes nginx ingress configuration required processing large files (3gb) in AKS cluster?
- Azure AKS: Kubernetes pod keeps showing CrashLoopBackOff status after assigning static IP
Related Questions in KUBERNETES-PYTHON-CLIENT
- How to get all daemonset info from EKS cluster using kubernetes-python client?
- is there Python client API for 'kubectl auth can-i --list'
- How can I dynamically allocate resources to each pod?
- How to bind local ports to Kubernetes pods for port forwarding using Kubernetes Python client?
- Python Docker SDK Inside Kubernetes
- How to create a job with postStart and preStop handlers by python kubernetes
- Pycharm lack of Intelisense for nested class properties
- How to get custom objects like VirtualMachine using kubernetes python client?
- How to make kubernetes.client.api.batch_v1_api.BatchV1Api.delete_namespaced_job wait till deletion is complete
- Unable to connect GKE autopilot cluster from kubernetes python client
- Docker Can't find kubernetes Config File
- how to pass patch type in patch_namespaced_deployment function in python kubernetes client?
- How can I specify ServiceAccount to be picked up by config.load_incluster_config() from kubernetes python sdk
- Remove volume from deployment using patch_namespaced_deployment not working
- Managing Openshift cluster with Python
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Looks like it doesn't exists a delete_from_yaml.py lib. After following several GitHub history the last update is 12d ago, apparently because it lacks contributors. ( https://github.com/kubernetes-client/python/pull/1392 )
Solutions:
kubectl deletecommand for this...Bguess