Drop initial code

This commit is contained in:
Danny Bessems
2026-01-15 09:58:01 +00:00
parent 227d957219
commit 1e7c9ba5cb
228 changed files with 19883 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/sh
# Copy script into /etc/cron.daily/
# Make it executable chmod 0755
# TODO: Update path to actual kubeconfig
export KUBECONFIG=/home/rancher/.kube/config
for n in $(kubectl get namespaces -A -o=jsonpath="{.items[*]['metadata.name']}"); do
kubectl patch serviceaccount default -p '{"automountServiceAccountToken": false}' -n $n
done