From 07584b615daea6e5002a126d67c83f5659d1a9db Mon Sep 17 00:00:00 2001 From: chrisjsimpson Date: Sat, 20 Apr 2019 21:23:37 +0100 Subject: [PATCH] Update create_deployment.py Update create_deployment.py to refer to the out-of-beta api. --- examples/create_deployment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/create_deployment.py b/examples/create_deployment.py index 0ce1e2fa1..44a14fddf 100644 --- a/examples/create_deployment.py +++ b/examples/create_deployment.py @@ -27,8 +27,8 @@ def main(): with open(path.join(path.dirname(__file__), "nginx-deployment.yaml")) as f: dep = yaml.safe_load(f) - k8s_beta = client.ExtensionsV1beta1Api() - resp = k8s_beta.create_namespaced_deployment( + k8s = client.AppsV1Api() + resp = k8s.create_namespaced_deployment( body=dep, namespace="default") print("Deployment created. status='%s'" % str(resp.status))