'How to read a Kubernetes Deployment with python kubernetes client

what is python kubernetes client equivalent for

kubectl get deploy -o yaml 

CRUD python Client example

i referred this example for getting python deployment but there is no read deployment option



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source