mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 12:41:58 +00:00
Merge pull request #2307 from satnam6502/logbydefault
Turn on Elasticsearch logging by default for GCE platform
This commit is contained in:
@@ -299,6 +299,14 @@ function kube-up {
|
||||
grep -v "^#" "${KUBE_ROOT}/cluster/gce/templates/salt-master.sh"
|
||||
) > "${KUBE_TEMP}/master-start.sh"
|
||||
|
||||
# Report logging choice (if any).
|
||||
if [[ "${FLUENTD_ELASTICSEARCH-}" == "true" ]]; then
|
||||
echo "+++ Logging using Fluentd to Elasticsearch"
|
||||
fi
|
||||
if [[ "${FLUENTD_GCP-}" == "true" ]]; then
|
||||
echo "+++ Logging using Fluentd to Google Cloud Logging"
|
||||
fi
|
||||
|
||||
# For logging to GCP we need to enable some minion scopes.
|
||||
if [[ "${FLUENTD_GCP-}" == "true" ]]; then
|
||||
MINION_SCOPES="${MINION_SCOPES}, https://www.googleapis.com/auth/logging.write"
|
||||
|
Reference in New Issue
Block a user