This repository was archived by the owner on May 16, 2023. It is now read-only.
[elasticsearch] Make ingress hosts optional#1003
Closed
wouterdegeus wants to merge 2 commits intoelastic:masterfrom
Closed
[elasticsearch] Make ingress hosts optional#1003wouterdegeus wants to merge 2 commits intoelastic:masterfrom
wouterdegeus wants to merge 2 commits intoelastic:masterfrom
Conversation
Signed-off-by: Wouter de Geus <wouterdegeus@binx.io>
Signed-off-by: Wouter de Geus <wouterdegeus@binx.io>
Collaborator
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
Member
|
Hi @wouterdegeus, |
Member
|
Related to #536 |
Member
|
jenkins test this please |
Member
|
Hi @wouterdegeus, Since #994, you can create an ingress with empty hosts using the following values: ingress:
enabled: true
annotations:
cloud.google.com/neg: '{"ingress": true}'
hosts:
- host: ''
paths:
- path: /I tested it and had exactly the same ingress generated as using your PR. Can you confirm this is working for your use case? |
Author
|
Just tested, this works indeed! |
Member
Awesome 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR allows the ingress hosts definition to be made empty, which is useful for POC situations where we really don't care about hostnames, for example in GKE using an internal loadbalancer with container native loadbalancing:
Without this PR the chart would generate an ingress without rules given above config, which is not accepted by kubernetes.
With this PR it generates a proper ingress template without a hostname tied to it.
${CHART}/tests/*.py${CHART}/examples/*/test/goss.yaml