Skip to content

Instantly share code, notes, and snippets.

View kwaazaar's full-sized avatar
💭
Docati

Robert te Kaat kwaazaar

💭
Docati
View GitHub Profile
@tomasaschan
tomasaschan / aks-restart-nodes.sh
Last active August 30, 2022 17:45
Rolling restart of all nodes in an AKS cluster
#!/bin/bash
set -e
resourceGroupDefault='<set your default here, to avoid having to specify in the common case>'
resourceGroup=${RESOURCE_GROUP:-$resourceGroupDefault}
clusterNameDefault='<set your default here>'
clusterName=${CLUSTER_NAME:-$clusterNameDefault}
regionDefault='<set your default here>'
region=${REGION:-$regionDefault}