The kubeconfig is invalid. Please reach administrator for valid kubeconfig
com.vmware.voss.error.VossException: The kubeconfig is invalid. Please reach administrator for valid kubeconfig.
at com.vmware.voss.k8s.utils.ClusterUtils.validateClusterConnectivity(ClusterUtils.java:128)
at com.vmware.voss.resource.k8s.service.impl.task.K8sClusterProtectAction.doAction(K8sClusterProtectAction.java:207)
at com.vmware.voss.resource.k8s.service.impl.ClusterServiceImpl.enableClusterProtection(ClusterServiceImpl.java:627)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
VMware Cloud Director 10.x
VMware Cloud Director Object Storage Extension 2.2.2
VMware Cloud Director Object Storage Extension 3.0
VMware Cloud Director Container Service Extension 4.x
This issue occurs when the OSE server can't setup network connection with Kubernetes cluster.
To resolve this issue check the connectivity between OSE and Kubernetes cluster as below:
telnet $ClusterIP 6443
ose show
Download the kube-config from VMware Cloud Director (VCD) to OSE VM, save it to vcd-k8s-kubeconfig
Download the kubectl to OSE VM
Run the command 'kubectl --kubeconfig ./vcd-k8s-kubeconfig get nodes'