roles/observability-agent/files/setup.sh: update

This commit is contained in:
Haitao Pan 2023-05-25 00:49:03 +08:00
parent fa3832f084
commit b27901df79

View File

@ -41,9 +41,10 @@ fluent-bit:
EOF
node_name=`kubectl get nodes | awk 'NR>1 {print $1}'`
kubectl create namespace monitoring || echo true
kubectl label nodes $node prometheus=true --overwrite || echo true
helm repo add stable https://artifact.onwalk.net/chartrepo/public/ || echo true
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts || echo true
helm repo update
helm upgrade --install node-exporter prometheus-community/prometheus-node-exporter
helm upgrade --install observableagent stable/observabilityagent -n monitoring --create-namespace -f values.yaml
helm upgrade --install observableagent stable/observabilityagent -n monitoring -f values.yaml
helm upgrade --install node-exporter prometheus-community/prometheus-node-exporter -n monitoring