Skip to content

Commit 1cfa6ac

Browse files
robertvolkmannvknabel
authored andcommitted
Use official clusterctl container
1 parent 5f82c72 commit 1cfa6ac

File tree

11 files changed

+14
-133
lines changed

11 files changed

+14
-133
lines changed

capi-lab/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ bake:
1212

1313
.PHONY: deploy-capi
1414
deploy-capi:
15-
make -C mini-lab env
16-
@[ -f .extra_vars.yaml ] || echo '{}' > .extra_vars.yaml
17-
docker compose --env-file ./mini-lab/.env up --remove-orphans --force-recreate capi
15+
docker compose run --rm clusterctl init
1816

1917
.PHONY: cleanup
2018
cleanup:

capi-lab/compose.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
services:
3+
clusterctl:
4+
container_name: clusterctl
5+
environment:
6+
- EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION=true
7+
- KUBECONFIG=/kubeconfig
8+
image: registry.k8s.io/cluster-api/clusterctl:v1.9.4
9+
network_mode: host
10+
user: root
11+
volumes:
12+
- ${KUBECONFIG}:/kubeconfig:ro

capi-lab/compose.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

capi-lab/deploy.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

capi-lab/inventory.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

capi-lab/obtain_role_requirements.yaml

Lines changed: 0 additions & 25 deletions
This file was deleted.

capi-lab/roles/cluster-api/defaults/main.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

capi-lab/roles/cluster-api/tasks/main.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

capi-lab/roles/prometheus/defaults/main.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

capi-lab/roles/prometheus/tasks/main.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)