Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit 39886aa

Browse files
hobti01edsiper
authored andcommitted
output: configmaps: use KUBERNETES_SERVICE_* environment (#39)
* Use KUBERNETES_* environment The Kubernetes API Server host and port could be non-default or restricted across namespaces. The cluster domain may not be `cluster.local` and Network Policies may restrict access. The KUBERNETES_SERVICE_* environment variables always contain the correct host and port for the cluster. Signed-off-by: Tim Hobbs <[email protected]> * Update kafka configmap Signed-off-by: Tim Hobbs <[email protected]>
1 parent ccd3ca2 commit 39886aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

output/elasticsearch/fluent-bit-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ data:
3737
[FILTER]
3838
Name kubernetes
3939
Match kube.*
40-
Kube_URL https://kubernetes.default.svc.cluster.local:443
40+
Kube_URL https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}
4141
Merge_Log On
4242
K8S-Logging.Parser On
4343

output/kafka/fluent-bit-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ data:
3737
[FILTER]
3838
Name kubernetes
3939
Match kube.*
40-
Kube_URL https://kubernetes.default.svc.cluster.local:443
40+
Kube_URL https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}
4141
Merge_Log On
4242
K8S-Logging.Parser On
4343

0 commit comments

Comments
 (0)