fixup! Add mostly-unchanged Helm chart from k8s-at-home

This commit is contained in:
Alexander Bauer 2022-11-08 00:46:27 +00:00 committed by Michael Shamoon
parent 5c4363cbea
commit 3226d8b25b

View File

@ -1,4 +1,4 @@
{{- include "common.notes.defaultNotes" . }}
2. Create a super user by running the command:
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "common.names.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
kubectl exec -it --namespace {{ .Release.Namespace }} $POD_NAME -- bash -c "python manage.py createsuperuser"
kubectl exec -it --namespace {{ .Release.Namespace }} $POD_NAME -- bash -c "python manage.py createsuperuser"