Create a Secret with a kubeconfig for external cluster used for infrastructure. kubectl create secret generic <secret-name> --from-file=kubeconfig=<kubeconfig-file-path>
Add Secret name to VirtinkCluster.Spec.InfraClusterSecretRef. When nil, the management cluster will be used for infrastructure.
Set VirtinkCluster.Spec.ConrolPlaneServiceType to LoadBalancer. You can set this filed to NodePort or LoadBalancer (nil for NodePort). When using external cluster, LoadBalancer is required and its external IP should be reachable in management cluster.
Steps to use external cluster for infrastructure
kubectl create secret generic <secret-name> --from-file=kubeconfig=<kubeconfig-file-path>
VirtinkCluster.Spec.InfraClusterSecretRef
. When nil, the management cluster will be used for infrastructure.VirtinkCluster.Spec.ConrolPlaneServiceType
toLoadBalancer
. You can set this filed toNodePort
orLoadBalancer
(nil for NodePort). When using external cluster,LoadBalancer
is required and its external IP should be reachable in management cluster.