goauthentik / goauthentik/helm

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

Open
#269 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Mustache
Stars
183
Forks
69
Avg merge
14h 21m
Merged PRs (30d)
8

Description

**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](https://github.com/goauthentik/authentik/assets/97409287/0eff7155-d069-438b-9274-804b86e274a2)
![grafik](https://github.com/goauthentik/authentik/assets/97409287/8d4434c6-5c0a-44d7-b69c-99926bb0ca40)

**Logs**
output of `helm status authentik`

![grafik](https://github.com/goauthentik/authentik/assets/97409287/3b551849-1152-4c5d-b990-24d714821826)

**Version and Deployment (please complete the following information):**

- authentik version: 2024.4.2
- Deployment: authentik: docker-compose, remote-outpost: helm

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.