Comment 8 for bug 1894782

Revision history for this message
Ian Booth (wallyworld) wrote :

Yeah, sidecar charms don't currently allow the same level of pod configuration as operator style charms.

Note though that JUJU_POD_IP can be fetched using network-get and inspecting the bind addresses.

The service account name and pod name are the same as that of the application, so these can be inferred without needing to be explicitly set.

And is JUJU_NODE_NAME the same as hostname?

We could introduce extra hook env vars to make it easier for charm authors to get such data. Maybe we need to agree on a standard set of extra env vars we want to include in the hook context for a k8s charm.