oreilly-kubernetes
oreilly-kubernetes copied to clipboard
post container, like init container
I asked this question on Slack but didn't get a clear answer. I'm looking to run commands after the container starts up. There doesn't seem to be a companion to init containers, only hooks. And even then, I didn't see a HTTP POST hook. If I were to bring up a database and then create schema or populate with seed data, it'd be very useful to have the ability to run post scripts. Post hooks can run shell scripts but they're clumsy because the script has to be maintained somewhere else, and as I said earlier, I didn't find a way to run HTTP POST commands.