mirror of
https://github.com/k3s-io/k3s.git
synced 2026-04-06 09:55:01 -04:00
* Split drone e2e into multiple blocks, explicit virsh cleanup * Create multiple registries once and reuse as long as they exist Signed-off-by: Derek Nola <derek.nola@suse.com>
23 lines
No EOL
544 B
Bash
23 lines
No EOL
544 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:15000\"
|
|
registry.k8s.io:
|
|
endpoint:
|
|
- \"http://$ip_addr:15001\"
|
|
gcr.io:
|
|
endpoint:
|
|
- \"http://$ip_addr:15002\"
|
|
quay.io:
|
|
endpoint:
|
|
- \"http://$ip_addr:15003\"
|
|
ghcr.io:
|
|
endpoint:
|
|
- \"http://$ip_addr:15004\"" >> /etc/rancher/k3s/registries.yaml |