openstack-helm-infra/roles/deploy-env
Sergiy Markin 1c83e3a9ae [deploy-env] Docker env setup
This PS adds connection reset for ansible session
letting zuul user to use newly installed docker
environment without sudo

Change-Id: I37a2570f1dd58ec02338e07c32ec15eacbfaf4b6
2024-02-08 17:57:48 +00:00
..
defaults Bump Calico version to v3.27.0 2024-02-02 13:54:22 -06:00
files Update k8s packages repo 2023-12-12 17:58:20 -06:00
handlers Add license headers to deploy-env tasks files 2023-12-13 14:19:50 -06:00
tasks [deploy-env] Docker env setup 2024-02-08 17:57:48 +00:00
README.md Fix private key paths in the deploy-env role README.md 2023-10-26 22:20:17 +00: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 plain node
  • install Calico as a Kubernetes networking

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:
  children:
    ungrouped:
      hosts:
        primary:
          ansible_port: 22
          ansible_host: 10.10.10.10
          ansible_user: ubuntu
          ansible_ssh_private_key_file: /home/ubuntu/.ssh/id_rsa
          ansible_ssh_extra_args: -o StrictHostKeyChecking=no
    nodes:
      hosts:
        node-1:
          ansible_port: 22
          ansible_host: 10.10.10.11
          ansible_user: ubuntu
          ansible_ssh_private_key_file: /home/ubuntu/.ssh/id_rsa
          ansible_ssh_extra_args: -o StrictHostKeyChecking=no
        node-2:
          ansible_port: 22
          ansible_host: 10.10.10.12
          ansible_user: ubuntu
          ansible_ssh_private_key_file: /home/ubuntu/.ssh/id_rsa
          ansible_ssh_extra_args: -o StrictHostKeyChecking=no