-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix Helm chart public_addr for proxy when using Ingress #4107
Conversation
public_addr: {{ .Values.config.public_address }}:{{ .Values.ports.proxyweb.containerPort }} | ||
{{- if .Values.ingress.enabled }} | ||
{{- if .Values.ingress.tls }} | ||
public_addr: {{ .Values.config.public_address }}:443 |
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.
Assumptions:
- when TLS is configured on the
Ingress
it'll be using port 443 - when TLS is not configured on the
Ingress
it'll be using port 80
When not using an Ingress
, we change to using the host-side proxyweb
port under the service definition rather than the container-side port.
@benarent Could I have an approval stamp please? I think you're code owner on |
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.
Approving this to resolve customers bug , other TLS discussion has been moved to another ticket.
When using an
Ingress
to front your Teleport cluster in Kubernetes, access will be via port 443 (HTTPS) or 80 (HTTP - not recommended). Unfortunately, the Helm chart makes the assumption that you'll always be on port 3080 and this breakstsh
logins at the command line. This fixes that problem by specifically overriding thepublic_addr
ofproxy_service
when using anIngress
.I also changed all other
public_addr
settings in the main Helm chart to use the configured service port, rather than thecontainerPort
. This means that other traffic will be directed correctly if people change the default ports in their config.I also found a lot of random trailing spaces and blank tabs, so the PR removes all of those that I could find under our Helm charts too.
Fixes #4080