Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 94e50ff

Browse files
chancezderekparker
authored andcommitted
hack/single-node: Update bootkube-up to add kubeconfig once (#94)
This is to match multi-node. This was causing TLS errors because it caused the user-data containing the kubeconfig to be updated on every bootkube-up run, when it should only happen on the first run.
1 parent 96a96cc commit 94e50ff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hack/single-node/bootkube-up

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ fi
1010
# Render assets
1111
if [ ! -d "cluster" ]; then
1212
../../_output/bin/${local_os}/bootkube render --asset-dir=cluster --api-servers=https://172.17.4.100:443
13+
# Add rendered kubeconfig to the node user-data
14+
cat user-data.sample > cluster/user-data && sed 's/^/ /' cluster/auth/kubeconfig >> cluster/user-data
1315
fi
1416

15-
# Add rendered kubeconfig to the node user-data
16-
cat user-data.sample > cluster/user-data && sed 's/^/ /' cluster/auth/kubeconfig >> cluster/user-data
17-
1817
# Start the VM
1918
vagrant up
2019

0 commit comments

Comments
 (0)