Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using host network, the containers can't resolve kubernetes.default, thus not getting the metadata like pod name, namespace, etc. Using the environment variable KUBERNETES_SERVICE_HOST, which points to the current cluster API server, will allow that.
- Loading branch information