Skip to content

Added Ingress Example#933

Merged
k8s-ci-robot merged 2 commits into
kubernetes-client:masterfrom
ratanboddu:ingress-example
Aug 18, 2019
Merged

Added Ingress Example#933
k8s-ci-robot merged 2 commits into
kubernetes-client:masterfrom
ratanboddu:ingress-example

Conversation

@ratanboddu

Copy link
Copy Markdown
Contributor

What this example does :

  • Creates Deployment
  • Creates Service
  • Creates Ingress

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 15, 2019
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 15, 2019
@ratanboddu

Copy link
Copy Markdown
Contributor Author

/assign @yliaog

@micw523 micw523 left a comment

Copy link
Copy Markdown
Contributor

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?

Comment thread examples/ingress-example.py Outdated
def create_deployment(extensions_v1_beta1):
container = client.V1Container(
name="deployment",
image="ratanboddu/flaskapp:basic",

Copy link
Copy Markdown
Contributor

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?

Comment thread examples/ingress-example.py Outdated
replicas=1,
template=template)
# Deployment
deployment = client.ExtensionsV1beta1Deployment(

Copy link
Copy Markdown
Contributor

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

Comment thread examples/ingress-example.py Outdated
# Fetching and loading local Kubernetes Information
config.load_kube_config()
# For incluster details
# config.load_incluster_config()

Copy link
Copy Markdown
Contributor

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?

@ratanboddu

Copy link
Copy Markdown
Contributor Author

@yliaog @micw523 I've made the suggested changes.

@yliaog

yliaog commented Aug 18, 2019

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 18, 2019
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 18, 2019
@k8s-ci-robot
k8s-ci-robot merged commit 91c080d into kubernetes-client:master Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants