Skip to content

Commit

Permalink
[stable/kong] specify ingress class for Ingress Controller (helm#10031)
Browse files Browse the repository at this point in the history
If multiple Kong Ingress controllers are deployed with different
ingress-class parameters to satisfy different kinds of ingresses
in the same k8s cluster,
they will attempt to take aquire leader status on the same
election key, meaning only one of the ingress-class will ever be
satisfied.

This change ensures that a unique key is used for leader election for
every ingress-class.

Signed-off-by: Harry Bagdi <[email protected]>
  • Loading branch information
hbagdi authored and k8s-ci-robot committed Dec 16, 2018
1 parent a0392d8 commit 68cb50c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/kong/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
name: kong
sources:
- https://github.com/Kong/kong
version: 0.6.7
version: 0.6.8
appVersion: 0.14.1
1 change: 1 addition & 0 deletions stable/kong/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ spec:
- --publish-service={{ .Release.Namespace }}/{{ template "kong.fullname" . }}-proxy
# Set the ingress class
- --ingress-class={{ .Values.ingressController.ingressClass }}
- --election-id=kong-ingress-controller-leader-{{ .Values.ingressController.ingressClass }}
env:
- name: POD_NAME
valueFrom:
Expand Down

0 comments on commit 68cb50c

Please sign in to comment.