From 54405bc72d728c3eb652ede173defcab84d17359 Mon Sep 17 00:00:00 2001 From: Will Arroyo Date: Mon, 31 Jan 2022 11:29:26 -0700 Subject: [PATCH] add ako overlay for windows --- windows/ako/README.md | 36 ++++++++++++++++++++++++++ windows/ako/ako-toleration-overlay.yml | 0 2 files changed, 36 insertions(+) create mode 100644 windows/ako/README.md create mode 100644 windows/ako/ako-toleration-overlay.yml diff --git a/windows/ako/README.md b/windows/ako/README.md new file mode 100644 index 0000000..465d0fa --- /dev/null +++ b/windows/ako/README.md @@ -0,0 +1,36 @@ +# add tolerations for AKO pod on windows clusters + +this can be applied after the fact to a mgmt cluster in order to allow for the AKO pods to run on the control plane nodes which is necessary on windows clusters + + +# Usage + +Connect to your management cluster and run the following. + +on linux + +``` +export AKO_OVERLAY=`cat ako-toleration-overlay.yml| base64 -w 0` +``` + +on mac: + +``` +export AKO_OVERLAY=`cat ako-toleration-overlay.yml| base64` +``` + +Run the below commands to patch the secret and add the overlay. + +get the secret name to modify. the below command will list out some secrets, grab the name of the one that has your cluster name as a prefix. + + +``` +kubectl get secrets | grep ingress +``` + +``` +kubectl patch secret -p '{"data": {"overlays.yaml": "'$AKO_OVERLAY'"}}' +``` + + +connect to your windows cluster and you should see the AKO pod recreate shortly after. diff --git a/windows/ako/ako-toleration-overlay.yml b/windows/ako/ako-toleration-overlay.yml new file mode 100644 index 0000000..e69de29