Skip to content

Commit

Permalink
Update k8s_beta
Browse files Browse the repository at this point in the history
  • Loading branch information
micw523 authored Jul 23, 2019
1 parent 7b9ec5f commit c92af56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/create_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.AppsV1Api()
resp = k8s_beta.create_namespaced_deployment(
k8s_apps_v1 = client.AppsV1Api()
resp = k8s_apps_v1.create_namespaced_deployment(
body=dep, namespace="default")
print("Deployment created. status='%s'" % str(resp.status))

Expand Down

0 comments on commit c92af56

Please sign in to comment.