└── k8s_token_rotation /k8s_token_rotation: -------------------------------------------------------------------------------- 1 | # Rainbow colors for text 2 | $colors = "Red", "Yellow", "Green", "Cyan", "Blue", "Magenta" 3 | $text = "Made By nerodtm" 4 | 5 | # Loop through the text and apply rainbow colors 6 | for ($i = 0; $i -lt $text.Length; $i++) { 7 | $color = $colors[$i % $colors.Length] 8 | $char = $text[$i] 9 | Write-Host -NoNewline -ForegroundColor $color $char 10 | } 11 | Write-Host 12 | 13 | az aks get-credentials -g $resource_group_name -n $cluster_name 14 | az aks rotate-certs -g $resource_group_name -n $cluster_name --yes 15 | az aks show -g $resource_group_name -n $cluster_name 16 | az aks get-credentials -g $resource_group_name -n $cluster_name --overwrite-existing 17 | --------------------------------------------------------------------------------