3.4.3 Connect to an OCNE Cluster

This topic provides the systematic instructions to configure the kubeconfig file and KUBECONFIG environment variable for cluster access.

  1. Locate the kubeconfig file for the cluster under <USER_HOME>/.kube, or obtain it from the cluster infrastructure team.

    For an OCNE CAPI cluster, the file name is kubeconfig.<cluster_name>.

  2. Copy the kubeconfig file to the <USER_HOME>/.kube directory on the installer VM.
  3. Set KUBECONFIG for the target cluster:
    # OCNE
    export KUBECONFIG=<USER_HOME>/.kube/kubeconfig.ocne.local
    # OKE
    export KUBECONFIG=<USER_HOME>/.kube/kubeconfig.<cluster_name>