File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 2828 --selector=app=metallb \
2929 --timeout=90s
3030
31- DOCKER_SUBNET=$(docker network inspect kind | jq -r '.[0].IPAM.Config[0].Subnet' | cut -d'/' -f1)
32- echo "Kind network subnet: $DOCKER_SUBNET"
33-
34- SUBNET_PREFIX=$(echo $DOCKER_SUBNET | cut -d'.' -f1-2)
35- echo "Subnet prefix: $SUBNET_PREFIX"
36-
31+ # Use a hardcoded IPv4 range that should be safe to use
3732 cat <<EOF | kubectl apply -f -
3833 apiVersion: metallb.io/v1beta1
3934 kind: IPAddressPool
4237 namespace: metallb-system
4338 spec:
4439 addresses:
45- - ${SUBNET_PREFIX}. 255.200-${SUBNET_PREFIX} .255.250
40+ - 172.18. 255.200-172.18 .255.250
4641 ---
4742 apiVersion: metallb.io/v1beta1
4843 kind: L2Advertisement
5550 run : |
5651 kubectl apply -f deployment.yaml
5752 kubectl apply -f service.yaml
53+ kubectl wait --for=condition=ready pod --selector=app=demo-http-server --timeout=60s
5854
5955 - name : Wait for LoadBalancer to get external IP
6056 run : |
You can’t perform that action at this time.
0 commit comments