From f0b953450aaf885d6b53c233e938d065bf231bbc Mon Sep 17 00:00:00 2001 From: Michael Nairn Date: Wed, 22 Nov 2023 17:35:56 +0000 Subject: [PATCH] Add script to generate MetalLB IPAddressPool for docker network. --- Makefile | 1 + doc/user-guides/gateway-dns.md | 27 ----------------------- doc/user-guides/gateway-tls.md | 29 +------------------------ utils/docker-network-ipaddresspool.sh | 31 +++++++++++++++++++++++++++ 4 files changed, 33 insertions(+), 55 deletions(-) create mode 100755 utils/docker-network-ipaddresspool.sh diff --git a/Makefile b/Makefile index 32b2ab5f0..865691f59 100644 --- a/Makefile +++ b/Makefile @@ -379,6 +379,7 @@ undeploy-policy-controller: ## Undeploy policy-controller from the K8s cluster s install-metallb: $(KUSTOMIZE) ## Installs the metallb load balancer allowing use of an LoadBalancer type with a gateway $(KUSTOMIZE) build config/metallb | kubectl apply -f - kubectl -n metallb-system wait --for=condition=ready pod --selector=app=metallb --timeout=60s + ./utils/docker-network-ipaddresspool.sh kind | kubectl apply -n metallb-system -f - .PHONY: uninstall-metallb uninstall-metallb: $(KUSTOMIZE) diff --git a/doc/user-guides/gateway-dns.md b/doc/user-guides/gateway-dns.md index 8748aec98..4b20e46dd 100644 --- a/doc/user-guides/gateway-dns.md +++ b/doc/user-guides/gateway-dns.md @@ -36,33 +36,6 @@ Install metallb: make install-metallb ``` -Fetch the current kind networks subnet: -```shell -docker network inspect kind -f '{{ (index .IPAM.Config 0).Subnet }}' -``` -Response: -```shell -"172.18.0.0/16" -``` - -Create IPAddressPool within kind network(Fetched by the command above) e.g. 172.18.200 -```shell -kubectl -n metallb-system apply -f -<