Files
2025-08-20 13:53:21 +03:00

1.0 KiB

Kubespray dualstack (IPv4 + IPv6) setup

Prerequisites

Ensure you have the following installed on your system:

  • libvirt (latest version recommended)
  • Terraform (latest version recommended)
  • Docker (latest version recommended)

Deploying environment

NOTE: You must have libvirt daemon running

Generate SSH keypair

mkdir .ssh
ssh-keygen -f .ssh/id_rsa

Goto Terraform directory

cd terraform

Create and edit dotenv file

cp .env.template .env

Init Terraform

terraform init

Start the environment

terraform apply

Provisioning Kubernetes

Run provision script

./scripts/provision

Testing dualstack

Apply manifest.yaml (on node)

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.