openstack-helm-infra/roles/deploy-env
Vladimir Kozhukalov cfed816a9a Fix coredns resolver
Forward requests for unknown names to 8.8.8.8

NOTE: Temporarily disable DPDK job which turned to
be incompatible with this PR
https://review.opendev.org/c/openstack/openstack-helm/+/914399
It wasn't tested with the DPDK job.

Change-Id: I936fb1032a736f7b09ad50b749d37095cce4c392
2024-03-28 20:34:23 -05:00
..
defaults Fix coredns resolver 2024-03-28 20:34:23 -05:00
files Refactor deploy-env role 2024-03-25 14:45:00 -05:00
handlers Add license headers to deploy-env tasks files 2023-12-13 14:19:50 -06:00
tasks Fix coredns resolver 2024-03-28 20:34:23 -05:00
README.md Refactor deploy-env role 2024-03-25 14:45:00 -05:00

This role is used to deploy test environment which includes

  • install necessary prerequisites including Helm
  • deploy Containerd and a container runtime for Kubernetes
  • deploy Kubernetes using Kubeadm with a single control plane node
  • install Calico as a Kubernetes networking
  • establish tunnel between primary node and K8s control plane ndoe

The role works both for singlenode and multinode inventories and assumes the inventory has the node called primary and the group called nodes.

See for example:

all:
  vars:
    ansible_port: 22
    ansible_user: ubuntu
    ansible_ssh_private_key_file: /home/ubuntu/.ssh/id_rsa
    ansible_ssh_extra_args: -o StrictHostKeyChecking=no
  children:
    primary:
      hosts:
        primary:
          ansible_host: 10.10.10.10
    k8s_cluster:
      hosts:
        node-1:
          ansible_host: 10.10.10.11
        node-2:
          ansible_host: 10.10.10.12
        node-3:
          ansible_host: 10.10.10.13
    k8s_control-plane:
      hosts:
        node-1:
          ansible_host: 10.10.10.11
    k8s_nodes:
      hosts:
        node-2:
          ansible_host: 10.10.10.12
        node-3:
          ansible_host: 10.10.10.13