-
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
kube service automatically registering in k8s deployment with Teleport cluster name #6226
Comments
This behavior is intentional, to preserve backwards-compatibility with pre-5.0 deployments that used While it is annoying, does this actually cause issues in practice @stevenGravy ? |
I think we can change the behavior in
|
@awly @russjones this change may still be backwards-incompatible if any users or automation rely on the teleport-named cluster existing even with the new |
As discussed on the call, this can be pushed to 7.0 |
Fixed in #6786 |
@nklaassen @awly is there any way today before 7.0 to set labels on the proxy kube service? today we set labels on the Just wondering how I can get RBAC working for k8s with 6.2.x? |
Yes, labels should be set at
Yes, you need to enable the k8s port on the proxy using |
@awly I get multiple entries looking at
In the UI I get a single service but it has no labels. |
@stefansedich I see, there are two entries registered - one by Can you try changing the If this is correct, one way to restrict access to the cluster registered by
This should prevent the proxy from registering its own kubernetes cluster without labels. |
Description
What happened:
When Teleport
proxy_service
is deployed to K8s it always adds akube_service
entry with the same name as the Teleport cluster. That causes a problem if you dont' want a k8s service available or you want to specify a specific name with labels. Ifkube_listen_addr
is set on the proxy then akube_service
will automatically show up. That same does not occur on a linux machine only deployment.Ex from a helm deployment:
Deployed in EKS this results in two
kubernetes_service
entries. Atest3
and ateleport.example.com
k8s service show.What you expected to happen:
If only the
kubernetes_service
is specified with no config file it should only have a singlekubernetes_service
with the name, labels specified. If only thekube_listen_addr
is specified then nokubenertes_service
should be specified.Reproduction Steps
As minimally and precisely as possible, describe step-by-step how to reproduce the problem.
1.In the
teleport
helm chart comment out the proxy k8s section in values.yaml (lines 170)2.Specify a
kubernetes_service
3.Deploy
4.Check the number of
kubernetes_service
fromtctl get kube_service
Server Details
teleport version
): 6.0.2/etc/os-release
): AWS LinuxClient Details
tsh version
): 6.0.2The text was updated successfully, but these errors were encountered: