Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

[stable/kong] introduce Kong ingress controller#9020

Merged
k8s-ci-robot merged 14 commits intohelm:masterfrom
hbagdi:kong-ingress-controller
Nov 16, 2018
Merged

[stable/kong] introduce Kong ingress controller#9020
k8s-ci-robot merged 14 commits intohelm:masterfrom
hbagdi:kong-ingress-controller

Conversation

@hbagdi
Copy link
Collaborator

@hbagdi hbagdi commented Nov 5, 2018

What this PR does / why we need it:

Deploy Kong as your Ingress controller!

This is developed by @merqurio and I'm merely making some doc changes and opening this PR.
#7350 is superseded by this.

@helm-bot helm-bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Nov 5, 2018
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 5, 2018
@hbagdi hbagdi force-pushed the kong-ingress-controller branch from fda5d77 to 3f58551 Compare November 5, 2018 18:07
@helm-bot helm-bot added Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 5, 2018
@hbagdi hbagdi force-pushed the kong-ingress-controller branch from 3f58551 to 2cca937 Compare November 5, 2018 18:10
@helm-bot helm-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 5, 2018
@hbagdi hbagdi force-pushed the kong-ingress-controller branch from 2cca937 to 57bd234 Compare November 5, 2018 18:12
@helm-bot helm-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 5, 2018
@hbagdi
Copy link
Collaborator Author

hbagdi commented Nov 5, 2018

/ok-to-test

@hbagdi
Copy link
Collaborator Author

hbagdi commented Nov 5, 2018

/assign shashiranjan84

@hbagdi hbagdi force-pushed the kong-ingress-controller branch from 57bd234 to 37453fb Compare November 6, 2018 00:25
@helm-bot helm-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 6, 2018
@hbagdi hbagdi changed the title Kong ingress controller [stable/kong] introduce Kong ingress controller Nov 6, 2018
@hbagdi hbagdi force-pushed the kong-ingress-controller branch from 37453fb to 7995cc3 Compare November 7, 2018 17:16
@helm-bot helm-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 7, 2018
@hbagdi hbagdi force-pushed the kong-ingress-controller branch from 7995cc3 to fa2ee78 Compare November 7, 2018 17:39
@helm-bot helm-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 7, 2018
@hbagdi
Copy link
Collaborator Author

hbagdi commented Nov 7, 2018

/test pull-charts-e2e

@helm-bot helm-bot removed the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Nov 7, 2018
@helm-bot helm-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 14, 2018
Signed-off-by: Harry Bagdi <harrybagdi@gmail.com>
@helm-bot helm-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 14, 2018
Signed-off-by: Harry Bagdi <harrybagdi@gmail.com>
@helm-bot helm-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 14, 2018
@hbagdi
Copy link
Collaborator Author

hbagdi commented Nov 14, 2018

UPDATE: Please ignore this, this was due to a bad helm-hook of post-delete.

@unguiculus Testing locally, the crd-install hook seems to have a problem.

It doesn't actually install the CRD.

Running the following:

helm install --dry-run --debug . \
    --set ingressController.enabled=true \
    --namespace yolo \
    --set admin.useTLS=false \
    --set readinessProbe.httpGet.scheme=HTTP \
    --set livenessProbe.httpGet.scheme=HTTP

give the following output:
https://gist.github.com/hbagdi/fb9edd4c4657670cc12bbf77e141df5a

Signed-off-by: Harry Bagdi <harrybagdi@gmail.com>
@helm-bot helm-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 14, 2018
Signed-off-by: Harry Bagdi <harrybagdi@gmail.com>
@helm-bot helm-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 14, 2018
Signed-off-by: Harry Bagdi <harrybagdi@gmail.com>
@helm-bot helm-bot removed the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Nov 14, 2018
@hbagdi
Copy link
Collaborator Author

hbagdi commented Nov 14, 2018

The tests should now pass once the CRDs are deleted manually once from the test infra cluster.
We're not using a hook for the chart since we don't use the any object of that CR type.

Signed-off-by: Harry Bagdi <harrybagdi@gmail.com>
@hbagdi
Copy link
Collaborator Author

hbagdi commented Nov 14, 2018

/retest

@hbagdi
Copy link
Collaborator Author

hbagdi commented Nov 14, 2018

@unguiculus Really appreciate you jumping in on this one and helping out troubleshoot the CI issue. Could you review this once more?
Thank you!

Signed-off-by: Harry Bagdi <harrybagdi@gmail.com>
Copy link
Collaborator

@shashiranjan84 shashiranjan84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@hbagdi
Copy link
Collaborator Author

hbagdi commented Nov 16, 2018

@unguiculus Gentle ping for an approval on this PR.

@cpanato
Copy link
Member

cpanato commented Nov 16, 2018

/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato, hbagdi, shashiranjan84

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

@merqurio
Copy link
Contributor

Thanks @hbagdi for this

@hbagdi
Copy link
Collaborator Author

hbagdi commented Nov 16, 2018

@merqurio @cpanato @unguiculus @shashiranjan84 Thank you for helping get this through!

@joe1chen
Copy link
Contributor

@hbagdi Great work on this! I've been following this issue and testing it the past few days.

I found a pretty severe bug with this pull though. It will break the kong proxy because a bug is introduced where traffic is occasionally sent to the ingress controller pod instead of the proxy pods. I kept on getting intermittent connection refused errors until I found the issue is a result of the services not having a specific enough selector.

In service-kong-admin.yaml:
Change:

  selector:
    app: {{ template "kong.name" . }}
    release: {{ .Release.Name }}

to

  selector:
    app: {{ template "kong.name" . }}
    release: {{ .Release.Name }}
    component: app

And the same in service-kong-proxy.yaml:
Change:

  selector:
    app: {{ template "kong.name" . }}
    release: {{ .Release.Name }}

to:

  selector:
    app: {{ template "kong.name" . }}
    release: {{ .Release.Name }}
    component: app

Normally I would fork and open a pull request, but the last time I tried to contribute to helm, I had issues getting my environment set up to sign the contributor agreement. So in the interests of time and because this is a severe bug, I'm hoping you can open the bug for me and fix it.

I also have a few other enhancements to contribute, such as support for TLS, which is working well with cert-manager and LetsEncrypt.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants