what is python kubernetes client equivalent for
kubectl get deploy -o yaml
i referred this example for getting python deployment but there is no read deployment option
read_namespaced_deployment()
does the thing:
from kubernetes import client, config
config.load_kube_config()
api = client.AppsV1Api()
deployment = api.read_namespaced_deployment(name='foo', namespace='bar')