Skip to content

Commit

Permalink
filter_kubernetes: fix default API server hostname
Browse files Browse the repository at this point in the history
By default Kubernenetes API server can be reach using:

   kubernetes.default.svc

ref: https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/

"The recommended way to locate the apiserver within the pod is
 with the kubernetes.default.svc DNS name, which resolves to a
 Service IP which in turn will be routed to an apiserver."

Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Apr 19, 2019
1 parent 1fac47b commit a008e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/filter_kubernetes/kube_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#define FLB_MERGE_BUF_SIZE 2048 /* 2KB */

/* Kubernetes API server info */
#define FLB_API_HOST "kubernetes.default.svc.cluster.local"
#define FLB_API_HOST "kubernetes.default.svc"
#define FLB_API_PORT 443
#define FLB_API_TLS FLB_TRUE

Expand Down

0 comments on commit a008e65

Please sign in to comment.