# Kubespray dualstack (IPv4 + IPv6) setup ## Prerequisites Ensure you have the following installed on your system: - [libvirt](https://libvirt.org/) (latest version recommended) - [Terraform](https://developer.hashicorp.com/terraform) (latest version recommended) - [Docker](https://www.docker.com/) (latest version recommended) ## Deploying environment NOTE: You must have `libvirt` daemon running ### Generate SSH keypair ```bash mkdir .ssh ssh-keygen -f .ssh/id_rsa ``` ### Goto Terraform directory ```bash cd terraform ``` ### Create and edit dotenv file ```bash cp .env.template .env ``` ### Init Terraform ```bash terraform init ``` ### Start the environment ```bash terraform apply ``` ## Provisioning Kubernetes ### Run provision script ```bash ./scripts/provision ``` ## Testing dualstack ### Apply manifest.yaml (on node) ```bash sudo kubectl apply -f manifest.yaml ``` ### Check access via IPv{4,6} You should access service via `10.6.6.10` and `2001:db8:ca2:2::10` inside cluster and on hypervisor.