Fixed kube-schedule-anywhere
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
c57251d4d5
commit
3d41d240b0
@ -52,7 +52,7 @@ if [[ "$DEPLOYMENT" == "" ]]; then
|
|||||||
|
|
||||||
deployment=($(kubectl get deployments --all-namespaces -o wide | _fzf | awk '{print $1, $2}'))
|
deployment=($(kubectl get deployments --all-namespaces -o wide | _fzf | awk '{print $1, $2}'))
|
||||||
DEPLOYMENT=${deployment[1]}
|
DEPLOYMENT=${deployment[1]}
|
||||||
NAMESPACE=${pod[0]}
|
NAMESPACE=${deployment[0]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kubectl patch deployment -n ${NAMESPACE} ${DEPLOYMENT} -p '{"spec": { "template": { "spec": { "tolerations": [ { "operator": "Exists" } ] } } } }' 1>/dev/null
|
kubectl patch deployment -n ${NAMESPACE} ${DEPLOYMENT} -p '{"spec": { "template": { "spec": { "tolerations": [ { "operator": "Exists" } ] } } } }' 1>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user