Skip to main content
Use the public endpoint to connect to the cluster from the internet and the private endpoint to connect from a Compute virtual machine.
  1. Generate a kubeconfig file:
    nebius mk8s cluster get-credentials \
      --id <cluster_ID> --external
    
  2. Use kubectl:
    kubectl cluster-info
    
You can limit access to the public endpoint and only allow certain IP addresses to connect to the cluster. For more information, see Access restriction for a public endpoint of a Managed Service for Kubernetes® cluster.