Skip to content
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

[v11] Kubernetes joinMethod #21907

Merged
merged 1 commit into from
Feb 24, 2023
Merged

Conversation

hugoShaka
Copy link
Contributor

@hugoShaka hugoShaka commented Feb 16, 2023

Backport #18659

About the backport

This backport is here to provide a rollback path from v12 to v11. Helm users upgrading to v12 end up with Kubernetes tokens automatically created. Currently, if they rollback to v11, the token is unknown and Teleport crashes during cache warming. Once this will be backported, users will have a v11 version they can rollback to if the v12 upgrade fails.

Original commit message

This commit adds a new joinMethod as described in #17905

This method allow pods running in the same Kubernetes cluster than the auth servers to join the Teleport cluster. It relies on Kubernetes tokens to establish trust. The goal is to be able to deploy proxies and auths separately and join them in a single cluser.

Pre Kubernetes 1.20, the tokens are static, long-lived, not bound to pods. We support them for compatibility reasons. Starting with Kubernetes 1.20, tokens are bound to pods (and starting with 1.21 they can be mounted through projected volumes). Starting with 1.21 we should only accept bound tokens. The chart will ensure tokens are properly mounted with projected volumes so we can benefit from the 1h to 10min token lifetime.

Copy link
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

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

Bot.

@hugoShaka hugoShaka enabled auto-merge (squash) February 16, 2023 19:10
@hugoShaka hugoShaka force-pushed the hugo/backport-18659-to-branch/v11 branch from 7aa6841 to 56dda9a Compare February 20, 2023 13:43
This commit adds a new joinMethod as described in #17905

This method allow pods running in the same Kubernetes cluster than the auth servers to join the Teleport cluster. It relies on Kubernetes tokens to establish trust. The goal is to be able to deploy proxies and auths separately and join them in a single cluser.

Pre Kubernetes 1.20, the tokens are static, long-lived, not bound to pods. We support them for compatibility reasons. Starting with Kubernetes 1.20, tokens are bound to pods (and starting with 1.21 they can be mounted through projected volumes). Starting with 1.21 we should only accept bound tokens. The chart will ensure tokens are properly mounted with projected volumes so we can benefit from the 1h to 10min token lifetime.
@hugoShaka hugoShaka force-pushed the hugo/backport-18659-to-branch/v11 branch from 56dda9a to acc36da Compare February 24, 2023 13:20
@hugoShaka hugoShaka merged commit ea3f8eb into branch/v11 Feb 24, 2023
@r0mant r0mant deleted the hugo/backport-18659-to-branch/v11 branch February 27, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants