Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinbunney committed Nov 25, 2024
1 parent 6f37a7e commit 5e17bd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/start-k3s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ echo "--> Starting k3s in docker-compose"
docker-compose up -d --build

echo "--> Allow insecure access to registry"
docker exec k3s_node_1 /bin/sh -c 'mkdir -p /etc/rancher/k3s'
docker cp "${DIR}/registries.yaml" k3s_node_1:/etc/rancher/k3s/registries.yaml
docker exec k3s-node-1 /bin/sh -c 'mkdir -p /etc/rancher/k3s'
docker cp "${DIR}/registries.yaml" k3s-node-1:/etc/rancher/k3s/registries.yaml

echo "--> Wait for k3s kubeconfig file to exist"
while [ ! -s "${KUBECONFIG}" ] || [ ! -f "${KUBECONFIG}" ]; do sleep 1; done
Expand Down

0 comments on commit 5e17bd4

Please sign in to comment.