1
0
mirror of https://github.com/khuedoan/homelab.git synced 2025-01-31 18:05:05 +07:00
khuedoan-homelab/scripts/kanidm-reset-admin-password
2024-01-04 10:40:43 +07:00

6 lines
258 B
Bash
Executable File

#!/bin/sh
echo "WARNING: Kanidm admin can do anything in the cluster, only use it for just enough initial setup or in emergencies." >&2
export KUBECONFIG=./metal/kubeconfig.yaml
kubectl exec -it -n kanidm statefulset/kanidm -- kanidmd recover-account admin