Skip to content

kube: resolve Kubernetes cluster domain#43584

Merged
tigrato merged 1 commit intomasterfrom
tigrato/cluster-domain-kube
Jun 28, 2024
Merged

kube: resolve Kubernetes cluster domain#43584
tigrato merged 1 commit intomasterfrom
tigrato/cluster-domain-kube

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Jun 27, 2024

This PR enhances teleport by no longer assuming the cluster domain must be cluster.local. Since many clusters use a non-default cluster domain, this assumption can disrupt app discovery access.

To address this, the PR allows to set clusterDomain via the helm chart when installing/upgrading the agent.

Fixes #39007

Changelog: Extend Teleport ability to use non-default cluster domains in Kubernetes, avoiding the assumption of cluster.local.

@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-k30hndljw-goteleport.vercel.app/docs/ver/preview

Comment thread lib/services/app.go Outdated
Comment thread lib/services/app.go Outdated
Comment thread lib/services/app_test.go Outdated
Comment thread lib/services/app_test.go Outdated
Comment thread lib/services/app.go Outdated
@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-mw92ym9t7-goteleport.vercel.app/docs/ver/preview

@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-8za9iev3y-goteleport.vercel.app/docs/ver/preview

@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-9kzkb7kw0-goteleport.vercel.app/docs/ver/preview

@tigrato tigrato force-pushed the tigrato/cluster-domain-kube branch from 0832dc0 to 633dd56 Compare June 27, 2024 15:40
@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-b52e0hwrv-goteleport.vercel.app/docs/ver/preview

Comment thread docs/pages/reference/helm-reference/includes/zz_generated.teleport-kube-agent.mdx Outdated
@tigrato tigrato force-pushed the tigrato/cluster-domain-kube branch from 9a57bd9 to 2d5490e Compare June 28, 2024 08:55
@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-3phiw8nzp-goteleport.vercel.app/docs/ver/preview

@tigrato tigrato added this pull request to the merge queue Jun 28, 2024
Merged via the queue into master with commit 9f8dd01 Jun 28, 2024
@tigrato tigrato deleted the tigrato/cluster-domain-kube branch June 28, 2024 09:32
@public-teleport-github-review-bot
Copy link
Copy Markdown

@tigrato See the table below for backport results.

Branch Result
branch/v14 Failed
branch/v15 Failed
branch/v16 Failed

tigrato added a commit that referenced this pull request Jun 28, 2024
This PR enhances teleport's intelligence by no longer assuming the cluster domain is `cluster.local`. Since many clusters use a non-default cluster domain, this assumption can disrupt app discovery access.

Fixes #39007

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
tigrato added a commit that referenced this pull request Jun 28, 2024
This PR enhances teleport's intelligence by no longer assuming the cluster domain is `cluster.local`. Since many clusters use a non-default cluster domain, this assumption can disrupt app discovery access.

Fixes #39007

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Jun 28, 2024
This PR enhances teleport's intelligence by no longer assuming the cluster domain is `cluster.local`. Since many clusters use a non-default cluster domain, this assumption can disrupt app discovery access.

Fixes #39007

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Jun 28, 2024
This PR enhances teleport's intelligence by no longer assuming the cluster domain is `cluster.local`. Since many clusters use a non-default cluster domain, this assumption can disrupt app discovery access.

Fixes #39007

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
tigrato added a commit that referenced this pull request Jul 8, 2024
This PR enhances teleport's intelligence by no longer assuming the cluster domain is `cluster.local`. Since many clusters use a non-default cluster domain, this assumption can disrupt app discovery access.

Fixes #39007

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Jul 8, 2024
This PR enhances teleport's intelligence by no longer assuming the cluster domain is `cluster.local`. Since many clusters use a non-default cluster domain, this assumption can disrupt app discovery access.

Fixes #39007

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@1st8
Copy link
Copy Markdown

1st8 commented Sep 3, 2024

@tigrato is there a reason that this has only been added to the deployment.yaml, and not to the statefulset.yaml?

tigrato added a commit that referenced this pull request Sep 3, 2024
This PR corrects a typo that didn't exposed the cluster domain in the statefulset, when it was introduced in PR #43584.

Changelog: Extend Teleport ability to use non-default cluster domains in Kubernetes, avoiding the assumption of `cluster.local`.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato
Copy link
Copy Markdown
Contributor Author

tigrato commented Sep 3, 2024

@tigrato is there a reason that this has only been added to the deployment.yaml, and not to the statefulset.yaml?

No, not at all. I though I also added it but doesn't look like the case. PR #46144 fixes it

@1st8
Copy link
Copy Markdown

1st8 commented Sep 3, 2024

Nice, thank you!

github-merge-queue Bot pushed a commit that referenced this pull request Sep 3, 2024
This PR corrects a typo that didn't exposed the cluster domain in the statefulset, when it was introduced in PR #43584.

Changelog: Extend Teleport ability to use non-default cluster domains in Kubernetes, avoiding the assumption of `cluster.local`.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
tigrato added a commit that referenced this pull request Sep 3, 2024
This PR corrects a typo that didn't exposed the cluster domain in the statefulset, when it was introduced in PR #43584.

Changelog: Extend Teleport ability to use non-default cluster domains in Kubernetes, avoiding the assumption of `cluster.local`.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
tigrato added a commit that referenced this pull request Sep 3, 2024
This PR corrects a typo that didn't exposed the cluster domain in the statefulset, when it was introduced in PR #43584.

Changelog: Extend Teleport ability to use non-default cluster domains in Kubernetes, avoiding the assumption of `cluster.local`.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
tigrato added a commit that referenced this pull request Sep 3, 2024
This PR corrects a typo that didn't exposed the cluster domain in the statefulset, when it was introduced in PR #43584.

Changelog: Extend Teleport ability to use non-default cluster domains in Kubernetes, avoiding the assumption of `cluster.local`.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Sep 3, 2024
This PR corrects a typo that didn't exposed the cluster domain in the statefulset, when it was introduced in PR #43584.

Changelog: Extend Teleport ability to use non-default cluster domains in Kubernetes, avoiding the assumption of `cluster.local`.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Sep 3, 2024
This PR corrects a typo that didn't exposed the cluster domain in the statefulset, when it was introduced in PR #43584.

Changelog: Extend Teleport ability to use non-default cluster domains in Kubernetes, avoiding the assumption of `cluster.local`.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Sep 3, 2024
This PR corrects a typo that didn't exposed the cluster domain in the statefulset, when it was introduced in PR #43584.

Changelog: Extend Teleport ability to use non-default cluster domains in Kubernetes, avoiding the assumption of `cluster.local`.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
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.

Kubernetes Application Discovery fails when the cluster DNS suffix is not cluster.local

7 participants