diff --git a/hack/cluster-monitoring/deploy b/hack/cluster-monitoring/deploy index 818db48c..a4f7c184 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 ac4d222d..b2c4c544 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