Skip to content

Commit

Permalink
Add cni for dev stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Zempashi committed Nov 28, 2023
1 parent 1e3dcd4 commit 846daad
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ services:
extends:
file: docker-compose.yaml
service: tests
terraform_apply:
terraform_dev:
extends:
file: docker-compose.yaml
service: terraform
environment:
TF_VAR_inventory_dir: "${PWD}/tests/dev"
command: ["apply", "-auto-approve"]
depends_on:
terraform:
Expand All @@ -61,7 +63,7 @@ services:
environment:
ANSIBLE_HOST_KEY_CHECKING: false
depends_on:
terraform_apply:
terraform_dev:
condition: service_completed_successfully
entrypoint:
- "${PWD}/scripts/detect-user.sh"
Expand All @@ -71,10 +73,11 @@ services:
poetry install --with ansible &&
poetry run ansible-galaxy install -r tests/ansible.requirements.yml &&
poetry run ansible-playbook
-i tests/terraform/openstack/kubeadm-hosts.cfg
-i tests/dev/kubeadm-hosts.cfg
tests/playbooks/prepare.yml
playbooks/00_apiserver_proxy.yml
playbooks/01-site.yml
tests/playbooks/cni.yml
$$@
- "--"
command: []
1 change: 1 addition & 0 deletions tests/dev/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
7 changes: 7 additions & 0 deletions tests/dev/group_vars/all/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
action_reasons_review_skip: true
cluster_config:
networking:
podSubnet: 10.95.0.0/16
controllerManager:
extraArgs:
"allocate-node-cidrs": "true"

0 comments on commit 846daad

Please sign in to comment.