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

Can't generate kubeconfig file for remote cluster integration using the authentik-remote-cluster helmchart #269

Open
CookieDude24 opened this issue May 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@CookieDude24
Copy link

Describe the bug
The helm chart doesn't create the nessescary secret so it defaults to "authentik-authentik-remote-cluster" secret which also doesn't exist. Thus I can't fill in the variables in the kubeconfig file that the helm chart outputs.

To Reproduce
Steps to reproduce the behavior:

  1. Create K8s Cluster with k3s v1.30.0+k3s1
  2. Install authentik-remote-cluster helmchart using this command: helm install authentik authentik/authentik-remote-cluster
  3. After succesful helmchart installlation execute following commands:
    KUBE_API=$(kubectl config view --minify --output jsonpath="{.clusters[*].cluster.server}")
    NAMESPACE=default
    SECRET_NAME=$(kubectl get serviceaccount authentik-authentik-remote-cluster -o jsonpath='{.secrets[0].name}' 2>/dev/null || echo -n "authentik-authentik-remote-cluster")
    KUBE_CA=$(kubectl -n $NAMESPACE get secret/$SECRET_NAME -o jsonpath='{.data.ca\.crt}')
    KUBE_TOKEN=$(kubectl -n $NAMESPACE get secret/$SECRET_NAME -o jsonpath='{.data.token}' | base64 --decode)
    The last two throw the following error:
    Error from server (NotFound): secrets "authentik-authentik-remote-cluster" not found

Expected behavior
The secret/serviceaccount being generated.

Screenshots
Note the non-existance of the required secret and the service account.

grafik
grafik

Logs
output of helm status authentik

grafik

Version and Deployment (please complete the following information):

  • authentik version: 2024.4.2
  • Deployment: authentik: docker-compose, remote-outpost: helm
@CookieDude24 CookieDude24 added the bug Something isn't working label May 20, 2024
@CookieDude24
Copy link
Author

I fixed the problem by using ArgoCD to install the helmchart. Though the name of the generated secret is authentik-remote-clusters. As a sanity check I tried the installation with helm again, this time explicitly setting the newest version using the option --version 2.0.0, but it still didn't work.

@BeryJu BeryJu transferred this issue from goauthentik/authentik May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant