Skip to content

Commit

Permalink
upgrade metallb (#1136)
Browse files Browse the repository at this point in the history
* upgrade metallb

Signed-off-by: Bob Callaway <[email protected]>

* print version

Signed-off-by: Bob Callaway <[email protected]>

* change network subnet calc

Signed-off-by: Bob Callaway <[email protected]>

---------

Signed-off-by: Bob Callaway <[email protected]>
  • Loading branch information
bobcallaway authored Jun 13, 2024
1 parent 19922c0 commit f5bd350
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/setup-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ echo '::endgroup::'
# Setup metallb
#
#############################################################
echo '::group:: Setup metallb'
echo '::group:: Setup metallb 0.14.5'

kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.5/config/manifests/metallb-native.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.14.5/config/manifests/metallb-native.yaml
kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey="$(openssl rand -base64 128)"

# Wait for Metallb to be ready (or webhook will reject CRDs)
Expand All @@ -222,7 +222,7 @@ done
# And allow for few seconds for things to settle just to make sure things are up
sleep 5

network=$(docker network inspect kind -f "{{(index .IPAM.Config 0).Subnet}}" | cut -d '.' -f1,2)
network=$(docker network inspect kind | jq -r '.[0].IPAM.Config[] | select(.Subnet | test("^[0-9]+\\.")) | .Subnet' | cut -d '.' -f1,2)
cat <<EOF >>./metallb-crds.yaml
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
Expand Down

0 comments on commit f5bd350

Please sign in to comment.