With the fix, Juju now exposes all the env vars available when the hook is run. It seems some upstream k8s client libraries alias KUBERNETES_SERVICE_HOST to SERVICE_HOST_ENV_NAME. KUBERNETES_SERVICE_HOST is definitely exposed if available to the container environment.
With the fix, Juju now exposes all the env vars available when the hook is run. It seems some upstream k8s client libraries alias KUBERNETES_ SERVICE_ HOST to SERVICE_ HOST_ENV_ NAME. KUBERNETES_ SERVICE_ HOST is definitely exposed if available to the container environment.