-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Added Ingress Example #933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Ingress Example #933
Conversation
/assign @yliaog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe extensions v1 beta1 API deployments are going to be totally phased out by k8s v1.16. Could you use newer APIs instead?
examples/ingress-example.py
Outdated
def create_deployment(extensions_v1_beta1): | ||
container = client.V1Container( | ||
name="deployment", | ||
image="ratanboddu/flaskapp:basic", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to have the image from gcr.io?
examples/ingress-example.py
Outdated
replicas=1, | ||
template=template) | ||
# Deployment | ||
deployment = client.ExtensionsV1beta1Deployment( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should use V1, deployment has GA already
examples/ingress-example.py
Outdated
# Fetching and loading local Kubernetes Information | ||
config.load_kube_config() | ||
# For incluster details | ||
# config.load_incluster_config() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the above commented out line?
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ratanboddu, yliaog The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this example does :