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 authored and gctucker committed Sep 15, 2023
1 parent 18e959d commit 9f19133
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kube/minikube/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 9f19133

Please sign in to comment.