Skip to content

Commit

Permalink
Merge pull request #463 from danpaul81/issue-462-noderole
Browse files Browse the repository at this point in the history
add node roles
  • Loading branch information
andrewh1978 authored Jan 8, 2024
2 parents 608d6ce + 78b4a36 commit 4554fc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions vagrant/k8s-master
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ while true; do
echo "kube api not ready. Waiting 5 seconds..."
sleep 5
done
# label node
kubectl label node $(hostname) node-role.kubernetes.io/master=master

echo "Applying Flannel"
kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/v0.22.0/Documentation/kube-flannel.yml
4 changes: 3 additions & 1 deletion vagrant/k8s-node
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ while : ; do
done
echo "Executing '$command'"
eval $command
wait
wait
# set role for this node
ssh -oConnectTimeout=1 -oStrictHostKeyChecking=no master-$cluster kubectl label node $(hostname) node-role.kubernetes.io/worker=worker

0 comments on commit 4554fc1

Please sign in to comment.