Skip to content

Commit

Permalink
kube/minikube/scripts: add script to setup admin user
Browse files Browse the repository at this point in the history
Setup an admin user for k8s API instance running
on Minikube.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia committed Aug 14, 2023
1 parent a51c491 commit b902cde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kube/minkube/scripts/setup_admin_user.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
API_POD_NAME=$(kubectl get ep kernelci-api -o=jsonpath='{.subsets[*].addresses[*].ip}' | tr ' ' '\n' | xargs -I % kubectl get pods -o=name --field-selector=status.podIP=%)
kubectl exec -it $API_POD_NAME -- python3 -m api.admin --mongo mongodb://kernelci-api-db.default.svc.cluster.local:27017 --email [email protected]

0 comments on commit b902cde

Please sign in to comment.