You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,28 @@ You can apply the GitOps playground to
150
150
* or almost any k8s cluster.
151
151
Note that if you want to deploy Jenkins inside the cluster, you either need Docker as container runtime or set Jenkins up to run its build on an agent that provides Docker.
152
152
153
+
For the local cluster, you can avoid hitting DockerHub's rate limiting by using a mirror via the `--docker-io-registry-mirror` parameter.
--format='{{ with (index .NetworkSettings.Ports "30000/tcp") }}{{ (index . 0).HostPort }}{{ end }}' \
137
-
k3d-${CLUSTER_NAME}-server-0)
158
+
k3d-${CLUSTER_NAME}-serverlb)
138
159
echo"Bound internal registry port 30000 to localhost port ${registryPort}."
139
160
echoHightlighted "Make sure to pass --internal-registry-port=${registryPort} when applying the playground."
140
161
fi
@@ -143,7 +164,7 @@ function createCluster() {
143
164
local ingressPort
144
165
ingressPort=$(docker inspect \
145
166
--format='{{ with (index .NetworkSettings.Ports "80/tcp") }}{{ (index . 0).HostPort }}{{ end }}' \
146
-
k3d-${CLUSTER_NAME}-server-0)
167
+
k3d-${CLUSTER_NAME}-serverlb)
147
168
echo"Bound ingress port to localhost:${ingressPort}."
148
169
echoHightlighted "Make sure to pass a base-url, e.g. --ingress-nginx --base-url=http://localhost$(if [ "${ingressPort}"-ne 80 ];thenecho":${ingressPort}"; fi) when applying the playground."
149
170
fi
@@ -166,6 +187,8 @@ function printParameters() {
166
187
echo" | --bind-ingress-port=INT >> Bind the ingress controller to this localhost port. Defaults to 80. Set to - to disable."
167
188
echo" | --bind-registry-port=INT >> Specify a custom port for the container registry to bind to localhost port. Only use this when port 30000 is blocked and --bind-localhost=true. Defaults to 30000 (default used by the playground)."
168
189
echo" | --bind-portBindings=STRING >> A comma separated list of additional port bindings like 443:443,9090:9090. Ignored when --bind-localhost."
190
+
191
+
echo" | --docker-io-registry-mirror=STRING >> the hostname of a registry that mirrors DockerHub. Useful when encountering rate limits"
169
192
echo
170
193
echo" -x | --trace >> Debug + Show each command executed (set -x)"
171
194
}
@@ -214,6 +237,7 @@ readParameters() {
214
237
# Use default port for playground registry, because no parameter is required when applying
0 commit comments