mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #26785 from a-robinson/es-master
Automatic merge from submit-queue Don't run fluentd-es on GCI masters It isn't run on containervm masters. It can't do anything on the master because the master doesn't have kube-proxy running to enable fluentd to talk to the elasticsearch service. @andyzheng0831
This commit is contained in:
commit
b91af0fab9
@ -764,7 +764,9 @@ function start-fluentd {
|
||||
if [[ "${ENABLE_NODE_LOGGING:-}" == "true" ]]; then
|
||||
if [[ "${LOGGING_DESTINATION:-}" == "gcp" ]]; then
|
||||
cp "${KUBE_HOME}/kube-manifests/kubernetes/fluentd-gcp.yaml" /etc/kubernetes/manifests/
|
||||
elif [[ "${LOGGING_DESTINATION:-}" == "elasticsearch" ]]; then
|
||||
elif [[ "${LOGGING_DESTINATION:-}" == "elasticsearch" && "${KUBERNETES_MASTER:-}" != "true" ]]; then
|
||||
# Running fluentd-es on the master is pointless, as it can't communicate
|
||||
# with elasticsearch from there in the default configuration.
|
||||
cp "${KUBE_HOME}/kube-manifests/kubernetes/fluentd-es.yaml" /etc/kubernetes/manifests/
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user