mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
5629c06967
Signed-off-by: Derek Nola <derek.nola@suse.com>
11 lines
300 B
Bash
11 lines
300 B
Bash
#!/bin/bash
|
|
|
|
# Script to to point k3s to the docker registry running on the host
|
|
# This is used to avoid hitting dockerhub rate limits on E2E runners
|
|
ip_addr=$1
|
|
|
|
mkdir -p /etc/rancher/k3s/
|
|
echo "mirrors:
|
|
docker.io:
|
|
endpoint:
|
|
- \"http://$ip_addr:5000\"" >> /etc/rancher/k3s/registries.yaml |