Skip to content

Commit c76cd0a

Browse files
Put kind into mini_lab_ext
1 parent 5f82c72 commit c76cd0a

File tree

7 files changed

+26
-11
lines changed

7 files changed

+26
-11
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ ifndef ignore-not-found
166166
endif
167167

168168
# this is configured to work with the capi-lab
169-
export METAL_API_URL := "http://metal.172.17.0.1.nip.io:8080"
169+
export METAL_API_URL := "http://metal.203.0.113.1.nip.io:8080"
170170
export METAL_API_HMAC := "metal-admin"
171171

172172
.PHONY: install

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ providers:
3737
Now you are able to install the CAPMS into your cluster:
3838
3939
```bash
40-
export METALCTL_API_URL=http://metal.172.17.0.1.nip.io:8080
40+
export METALCTL_API_URL=http://metal.203.0.113.1.nip.io:8080
4141
export METALCTL_API_HMAC=metal-admin
4242
export EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION=true
4343

capi-lab/Makefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
.DEFAULT_GOAL := up
2+
.EXPORT_ALL_VARIABLES:
23

4+
ANSIBLE_EXTRA_VARS_FILE=$(shell pwd)/mini-lab-overrides/extra-vars.yaml
5+
KIND_EXPERIMENTAL_DOCKER_NETWORK=mini_lab_ext
36
KUBECONFIG := $(shell pwd)/mini-lab/.kubeconfig
7+
MINI_LAB_FLAVOR=capms
8+
METALCTL_API_URL=http://metal.203.0.113.1.nip.io:8080
9+
METALCTL_HMAC=metal-admin
10+
411
IMG ?= ghcr.io/metal-stack/cluster-api-metal-stack-controller:latest
512

613
.PHONY: up
714
up: bake deploy-capi
815

916
.PHONY: bake
1017
bake:
11-
cd mini-lab && make up MINI_LAB_FLAVOR=capms ANSIBLE_EXTRA_VARS_FILE=../mini-lab-overrides/extra-vars.yaml
18+
cd mini-lab && make external_network up # change directory required for gen-certs
1219

1320
.PHONY: deploy-capi
1421
deploy-capi:
@@ -23,9 +30,9 @@ cleanup:
2330

2431
.PHONY: dev-env
2532
dev-env:
26-
@echo "export METALCTL_API_URL=http://metal.172.17.0.1.nip.io:8080"
27-
@echo "export METALCTL_HMAC=metal-admin"
28-
@echo "export KUBECONFIG=$(shell pwd)/mini-lab/.kubeconfig"
33+
@echo "export METALCTL_API_URL=${METALCTL_API_URL}"
34+
@echo "export METALCTL_HMAC=${METALCTL_HMAC}"
35+
@echo "export KUBECONFIG=${KUBECONFIG}"
2936

3037
.PHONY: controller
3138
controller:

capi-lab/firewall-rules.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ ingress:
2727
- 443
2828
protocol: TCP
2929
from:
30-
- 172.16.0.0/12 # Docker Networks
31-
- 203.0.113.0/24 # metal_lab_ext
30+
- 203.0.113.0/24
3231
to:
3332
- 203.0.113.128/25

capi-lab/mini-lab-overrides/extra-vars.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
2+
metal_control_plane_ingress_dns: 203.0.113.1.nip.io
23
metal_check_api_health_endpoint: http://metal.{{ metal_control_plane_ingress_dns }}:8080/v1/health
34

45
metal_api_base_path: "/"
56

67
metal_ingress_dns: metal.{{ metal_control_plane_ingress_dns }}
78

8-
metal_partition_metal_api_addr: metal.172.17.0.1.nip.io
9+
metal_partition_metal_api_addr: metal.{{ metal_control_plane_ingress_dns }}
910
metal_partition_metal_api_basepath: "/"
11+
metal_partition_mgmt_gateway: 203.0.113.1
1012

1113
metal_api_images:
1214
- id: firewall-ubuntu-3.0
@@ -21,3 +23,10 @@ metal_api_images:
2123
url: https://images.metal-stack.io/metal-os/pull_requests/273-cluster-api-k8s-v1.30.6/cluster-api/cluster-api-k8s-1.30.6/img.tar.lz4
2224
features:
2325
- machine
26+
27+
sonic_mgmtif_gateway: "203.0.113.1"
28+
29+
sonic_nameservers:
30+
- "203.0.113.1"
31+
- "1.1.1.1"
32+
- "1.0.0.1"

config/clusterctl-templates/example_variables.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export METAL_API_URL=http://metal.172.17.0.1.nip.io:8080
1+
export METAL_API_URL=http://metal.203.0.113.1.nip.io:8080
22
export METAL_API_HMAC=metal-admin
33

44
export METAL_PROJECT_ID=00000000-0000-0000-0000-000000000001

0 commit comments

Comments
 (0)