This commit is contained in:
Haitao Pan 2023-05-30 00:21:17 +08:00
parent 12956d1a57
commit df385a5a46

View File

@ -41,6 +41,8 @@ fluent-bit:
EOF
node_name=`kubectl get nodes | awk 'NR>1 {print $1}'`
kubectl delete clusterrolebindings --all -n monitoring || echo true
kubectl delete serviceaccounts --all -n monitoring || echo true
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