We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98a5be8 commit ae37ceeCopy full SHA for ae37cee
examples/ingress_create.py
@@ -51,8 +51,7 @@ def create_deployment(apps_v1_api):
51
)
52
53
54
-def create_service():
55
- core_v1_api = client.CoreV1Api()
+def create_service(core_v1_api):
56
body = client.V1Service(
57
api_version="v1",
58
kind="Service",
@@ -111,10 +110,11 @@ def main():
111
110
# Fetching and loading local Kubernetes Information
112
config.load_kube_config()
113
apps_v1_api = client.AppsV1Api()
+ core_v1_api = client.CoreV1Api()
114
networking_v1_api = client.NetworkingV1Api()
115
116
create_deployment(apps_v1_api)
117
- create_service()
+ create_service(core_v1_api)
118
create_ingress(networking_v1_api)
119
120
0 commit comments