From 8ac2ab38a67a908693646e044e0fb994c258b486 Mon Sep 17 00:00:00 2001 From: sandervanvugt Date: Tue, 5 Sep 2023 18:52:08 +0200 Subject: [PATCH] message --- pullratelimitpatch.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pullratelimitpatch.sh 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"}]}' +