After ocpctl env apply, only the platform cluster ends up in the kubeconfig. The onboarding cluster and any provisioned ControlPlane clusters are not accessible via kubectl without manual steps.
Two commands would fix this:
ocpctl env list clusters [<env>]
Interactive selector listing all clusters for an environment (platform, onboarding, and ControlPlane clusters from the operator's Cluster CRs). Selecting one triggers the kubeconfig export.
ocpctl env export kubeconfig -n <cluster-name>
Merges the kubeconfig for a specific cluster into ~/.kube/config. Also usable standalone for scripting.
After
ocpctl env apply, only the platform cluster ends up in the kubeconfig. The onboarding cluster and any provisioned ControlPlane clusters are not accessible viakubectlwithout manual steps.Two commands would fix this:
ocpctl env list clusters [<env>]Interactive selector listing all clusters for an environment (platform, onboarding, and ControlPlane clusters from the operator's
ClusterCRs). Selecting one triggers the kubeconfig export.ocpctl env export kubeconfig -n <cluster-name>Merges the kubeconfig for a specific cluster into
~/.kube/config. Also usable standalone for scripting.