2025.12 upgrade
This commit is contained in:
26
charts/authentik-remote-cluster/templates/NOTES.txt
Normal file
26
charts/authentik-remote-cluster/templates/NOTES.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
Run the commands below to get a kubeconfig file for authentik:
|
||||
|
||||
KUBE_API=$(kubectl config view --minify --output jsonpath="{.clusters[*].cluster.server}")
|
||||
NAMESPACE={{ .Release.Namespace }}
|
||||
SECRET_NAME=$(kubectl get serviceaccount {{ include "authentik-remote-cluster.fullname" . }} -o jsonpath='{.secrets[0].name}' 2>/dev/null || echo -n "{{ include "authentik-remote-cluster.fullname" . }}")
|
||||
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)
|
||||
|
||||
echo "apiVersion: v1
|
||||
kind: Config
|
||||
clusters:
|
||||
- name: default-cluster
|
||||
cluster:
|
||||
certificate-authority-data: ${KUBE_CA}
|
||||
server: ${KUBE_API}
|
||||
contexts:
|
||||
- name: default-context
|
||||
context:
|
||||
cluster: default-cluster
|
||||
namespace: $NAMESPACE
|
||||
user: authentik-user
|
||||
current-context: default-context
|
||||
users:
|
||||
- name: authentik-user
|
||||
user:
|
||||
token: ${KUBE_TOKEN}"
|
||||
Reference in New Issue
Block a user