diff --git a/pullratelimitpatch.sh b/pullratelimitpatch.sh new file mode 100644 index 0000000..ab6f551 --- /dev/null +++ b/pullratelimitpatch.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# this scripts creates a secret and sets that as the default for the default service account +# the purpose is to overcome the Docker imagepullratelimit restriction + +echo enter your docker username +read -s DOCKERUSER +echo enter your docker password +read -s DOCKERPASS + +kubectl create secret docker-registry dockercreds \ + --docker-username=$DOCKERUSER \ + --docker-password=$DOCKERPASS \ + +kubectl patch serviceaccount default \ + -p '{"imagePullSecrets": [{"name": "dockercreds"}]}' +