Repository navigation
feat(daemon): dial each kubernetes session at its own address and pass binding Service metadata - #1682
Merged
Conversation
…s binding Service metadata
A kind: kubernetes workspace's address expands {{.Orchestrator}} per
session, and binding_service.annotations and binding_service.labels land
on each Orchestrator's spec.daemon.binding.service with the same
expansion, so a VPN operator in the cluster can put every session on its
overlay. The CLI ships no VPN-specific keys. A fixed address keeps
working, and a workspace without binding_service keeps working on
operators that predate the field.
Closes #1677
Contributor
|
🎉 This PR is included in version 0.241.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #1677
What
addresson akind: kubernetesworkspace expands{{.Orchestrator}}per session. A fixedaddresskeeps working.binding_service.annotationsandbinding_service.labelson a kubernetes workspace, copied onto each Orchestrator'sspec.daemon.binding.servicewith{{.Orchestrator}}expanded in the values (operator PR feat(orchestrator): pass through binding Service annotations and labels operator#320). The CLI ships no VPN-specific keys.daemon.yamlvalidation at daemon start.binding_serviceon a non-kubernetes kind is rejected.env.binding_serviceis set, v0.29.0 otherwise.docs/daemon.mdgets a "Sessions on the VPN" section with a Tailscale and a NetBird setup.TLS is unchanged: the dial pins the daemon CA and verifies the Orchestrator name, which the pod certificate carries, so the overlay host needs no certificate of its own.
Not verified by hand
SidecarProfilepeer gets for a Sandbox pod is not checked, the docs say to use whatever name the NetBird setup assigns.Cross-repo
bindingServiceOperatorVersionanddocs/daemon.md.[DOCS]ticket draft below, not filed.[DOCS] draft
Title: [DOCS] daemon: per-session address and binding_service on kubernetes workspaces
Body: The CLI's
kind: kubernetesworkspace now expands{{.Orchestrator}}inaddressand takesbinding_service.annotations/binding_service.labels, passed onto each Orchestrator's binding Service (operator #320). Pages: the daemon / session teleport page and the daemon.yaml reference. Show the Tailscale operator and NetBird setups as in clidocs/daemon.md"Sessions on the VPN". Source: #1677 and this PR.