helm: Keep create admin job to retrieve initial password
This may be a security issue so needs to be thought about thoroughly. It makes initial setup way easier in my opinion though and you can also immediately reset your password afterwards in the web interface.
I wonder if the job is too fast to be picked up by things that scrape the stdout from pods
I wonder if the job is too fast to be picked up by things that scrape the stdout from pods
I would assume these tools would be able to deal with that but to my knowledge with vanilla kubectl it's only possible to retrieve this from jobs that aren't deleted yet. Also I didn't see any documentation on how to run tootctl easily (I know I could adjust this service to create an interactive container with that) so this was a thing to make mastodon easier to install for me. But maybe we could also just add such an interactive container to optionally enable in the helm chart like e.g. rook does.
kubectl exec -it deployment/mastodon-web -- sh gets you a shell running in one of the mastodon-web pods, tootctl is available.
You could also swap out sh for tootctl directly
Then I would close this and instead improve the documentation.
See https://github.com/mastodon/mastodon/pull/19791