Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriele Bartolini <[email protected]>
  • Loading branch information
gbartolini committed Oct 20, 2024
1 parent 12e31ba commit e0bb90c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/monitoring-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ for context in kind-k8s-eu kind-k8s-us; do
patch deployment grafana-operator-controller-manager \
--type='merge' --patch='{"spec":{"template":{"spec":{"tolerations":[{"key":"node-role.kubernetes.io/infra","operator":"Exists","effect":"NoSchedule"}],"nodeSelector":{"node-role.kubernetes.io/infra":""}}}}}'
done
done

# Creating Grafana instance and dashboards
for context in kind-k8s-eu kind-k8s-us; do
Expand All @@ -55,5 +54,8 @@ for context in kind-k8s-eu kind-k8s-us; do
done

# Restart the operator
kubectl rollout restart deployment -n cnpg-system cnpg-controller-manager
kubectl rollout status deployment -n cnpg-system cnpg-controller-manager
if kubectl get ns cnpg-system &> /dev/null
then
kubectl rollout restart deployment -n cnpg-system cnpg-controller-manager
kubectl rollout status deployment -n cnpg-system cnpg-controller-manager
fi

0 comments on commit e0bb90c

Please sign in to comment.