mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 14:45:28 +00:00
standard config opt names: cluster monitoring
This commit is contained in:
@@ -106,14 +106,14 @@ function ensure-temp-dir {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setup-monitoring {
|
function setup-monitoring {
|
||||||
if [ ${MONITORING-} ]; then
|
if [[ "${ENABLE_CLUSTER_MONITORING}" == "true" ]]; then
|
||||||
# TODO: Implement this.
|
# TODO: Implement this.
|
||||||
echo "Monitoring not currently supported on AWS"
|
echo "Monitoring not currently supported on AWS"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function teardown-monitoring {
|
function teardown-monitoring {
|
||||||
if [ ${MONITORING-} ]; then
|
if [[ "${ENABLE_CLUSTER_MONITORING}" == "true" ]]; then
|
||||||
# TODO: Implement this.
|
# TODO: Implement this.
|
||||||
echo "Monitoring not currently supported on AWS"
|
echo "Monitoring not currently supported on AWS"
|
||||||
fi
|
fi
|
||||||
|
@@ -35,8 +35,10 @@ MINION_SCOPES=("storage-ro" "compute-rw")
|
|||||||
# Increase the sleep interval value if concerned about API rate limits. 3, in seconds, is the default.
|
# Increase the sleep interval value if concerned about API rate limits. 3, in seconds, is the default.
|
||||||
POLL_SLEEP_INTERVAL=3
|
POLL_SLEEP_INTERVAL=3
|
||||||
PORTAL_NET="10.0.0.0/16"
|
PORTAL_NET="10.0.0.0/16"
|
||||||
# When set to true, heapster will be setup as part of the cluster bring up.
|
|
||||||
MONITORING=true
|
# Optional: When set to true, heapster will be setup as part of the cluster bring up.
|
||||||
|
ENABLE_CLUSTER_MONITORING=true
|
||||||
|
|
||||||
# Turn on Elasticsearch logging unless Google Cloud Logging has been selected or
|
# Turn on Elasticsearch logging unless Google Cloud Logging has been selected or
|
||||||
# if Elasticsearch logging has been specifically turned off.
|
# if Elasticsearch logging has been specifically turned off.
|
||||||
if [[ "${FLUENTD_GCP-}" != "true" ]]; then
|
if [[ "${FLUENTD_GCP-}" != "true" ]]; then
|
||||||
|
@@ -35,7 +35,8 @@ MINION_SCOPES=("storage-ro" "compute-rw")
|
|||||||
# Increase the sleep interval value if concerned about API rate limits. 3, in seconds, is the default.
|
# Increase the sleep interval value if concerned about API rate limits. 3, in seconds, is the default.
|
||||||
POLL_SLEEP_INTERVAL=3
|
POLL_SLEEP_INTERVAL=3
|
||||||
PORTAL_NET="10.0.0.0/16"
|
PORTAL_NET="10.0.0.0/16"
|
||||||
MONITORING=false
|
|
||||||
|
|
||||||
# When set to true, Docker Cache is enabled by default as part of the cluster bring up.
|
# When set to true, Docker Cache is enabled by default as part of the cluster bring up.
|
||||||
ENABLE_DOCKER_REGISTRY_CACHE=true
|
ENABLE_DOCKER_REGISTRY_CACHE=true
|
||||||
|
|
||||||
|
ENABLE_CLUSTER_MONITORING=false
|
||||||
|
@@ -566,7 +566,7 @@ function restart-kube-proxy {
|
|||||||
|
|
||||||
# Setup monitoring using heapster and InfluxDB
|
# Setup monitoring using heapster and InfluxDB
|
||||||
function setup-monitoring {
|
function setup-monitoring {
|
||||||
if [[ "${MONITORING}" == "true" ]]; then
|
if [[ "${ENABLE_CLUSTER_MONITORING}" == "true" ]]; then
|
||||||
echo "Setting up cluster monitoring using Heapster."
|
echo "Setting up cluster monitoring using Heapster."
|
||||||
|
|
||||||
if ! gcloud compute firewall-rules describe monitoring-heapster &>/dev/null; then
|
if ! gcloud compute firewall-rules describe monitoring-heapster &>/dev/null; then
|
||||||
@@ -604,7 +604,7 @@ function setup-monitoring {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function teardown-monitoring {
|
function teardown-monitoring {
|
||||||
if [[ "${MONITORING}" == "true" ]]; then
|
if [[ "${ENABLE_CLUSTER_MONITORING}" == "true" ]]; then
|
||||||
detect-project
|
detect-project
|
||||||
|
|
||||||
local kubectl="${KUBE_ROOT}/cluster/kubectl.sh"
|
local kubectl="${KUBE_ROOT}/cluster/kubectl.sh"
|
||||||
|
Reference in New Issue
Block a user