Creating a workload CAPX cluster in a Nutanix Flow VPC¶
Warning
The scenario and features described on this page are experimental. It's important to note that they have not been fully validated.
Note
Nutanix Flow VPCs are only validated with CAPX 1.1.3+
Nutanix Flow Virtual Networking allows users to create Virtual Private Clouds (VPCs) with Overlay networking. The steps below will illustrate how a CAPX cluster can be deployed inside an overlay subnet (NAT) inside a VPC while the management cluster resides outside of the VPC.
Steps¶
- Request a floating IP
- Link the floating IP to an internal IP address inside the overlay subnet that will be used to deploy the CAPX cluster. This address will be assigned to the CAPX loadbalancer. To prevent IP conflicts, make sure the IP address is not part of the IP-pool defined in the subnet.
- Generate a
cluster.yaml
file with the required CAPX cluster configuration where theCONTROL_PLANE_ENDPOINT_IP
is set to the floating IP requested in the first step. Refer to the Getting Started page for more information on how to generate acluster.yaml
file. Do not apply thecluster.yaml
file. - Edit the
cluster.yaml
file and search for theKubeadmControlPlane
resource. - Modify the
spec.kubeadmConfigSpec.files.*.content
attribute and change thekube-vip
definition similar to the example below. - Apply the
cluster.yaml
file. - When the CAPX workload cluster is deployed, it will be reachable via the floating IP.
Example¶
kind: KubeadmControlPlane
spec:
kubeadmConfigSpec:
files:
- content: |
apiVersion: v1
kind: Pod
metadata:
name: kube-vip
namespace: kube-system
spec:
containers:
- env:
- name: address
value: "<internal overlay subnet address>"