diff --git a/hack/cluster-monitoring/deploy b/hack/cluster-monitoring/deploy index 818db48c6bb66ee16fd7ff0200ca7cc0891a7d4f..a4f7c184403f2cd93569b3fd61443c15ecfaecde 100755 --- a/hack/cluster-monitoring/deploy +++ b/hack/cluster-monitoring/deploy @@ -4,6 +4,9 @@ if [ -z "${KUBECONFIG}" ]; then export KUBECONFIG=~/.kube/config fi +# CAUTION - setting NAMESPACE will deploy most components to the given namespace +# however some are hardcoded to 'monitoring'. Only use if you have reviewed all manifests. + if [ -z "${NAMESPACE}" ]; then NAMESPACE=monitoring fi diff --git a/hack/cluster-monitoring/teardown b/hack/cluster-monitoring/teardown index ac4d222d005a83b284e1133d09ce779e69a494cc..b2c4c544bbdf19bb7047d720b45f20bd5e668f81 100755 --- a/hack/cluster-monitoring/teardown +++ b/hack/cluster-monitoring/teardown @@ -4,6 +4,9 @@ if [ -z "${KUBECONFIG}" ]; then export KUBECONFIG=~/.kube/config fi +# CAUTION - NAMESPACE must match its value when deploy script was run. +# Some resources are always deployed to the monitoring namespace. + if [ -z "${NAMESPACE}" ]; then NAMESPACE=monitoring fi