Skip to content

Commit

Permalink
next commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mbakalarski committed Feb 5, 2025
1 parent ec2cffd commit b9229e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netclab-minikube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ log "Deploying, give me ${timeout}"
kubectl -n metallb-system wait --for=jsonpath='{.status.numberReady}'=1 --timeout=${timeout} daemonset.apps/speaker

unset k8s_netname; k8s_netname="${cluster_name}"
k8s_subnet=$(docker network inspect ${k8s_netname} --format json | jq -r .[].IPAM.Config[].Subnet | grep -v \: | awk -F'/' '{printf $1}')
unset prefix; prefix=$(echo "${k8s_subnet}" | awk -F'.' -e '{printf $1"."$2"."$3}')
k8s_subnet=$(docker network inspect ${k8s_netname} | jq -r .[].IPAM.Config[].Subnet | grep -v \: | awk -F'/' '{printf $1}')
unset prefix; prefix=$(echo "${k8s_subnet}" | awk -F'.' '{printf $1"."$2"."$3}')

cat <<EOT | kubectl apply -f -
apiVersion: metallb.io/v1beta1
Expand Down

0 comments on commit b9229e2

Please sign in to comment.