Fixed kube-schedule-anywhere

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2023-01-16 12:22:13 +00:00
parent c57251d4d5
commit 3d41d240b0
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -52,7 +52,7 @@ if [[ "$DEPLOYMENT" == "" ]]; then
deployment=($(kubectl get deployments --all-namespaces -o wide | _fzf | awk '{print $1, $2}'))
DEPLOYMENT=${deployment[1]}
NAMESPACE=${pod[0]}
NAMESPACE=${deployment[0]}
fi
kubectl patch deployment -n ${NAMESPACE} ${DEPLOYMENT} -p '{"spec": { "template": { "spec": { "tolerations": [ { "operator": "Exists" } ] } } } }' 1>/dev/null