How to connect Azure ARO private cluster?

Saravanan Krishnan 40 Reputation points
2024-04-29T04:44:51.4533333+00:00

I have created Private ARO (Azure Redhat Openshift) cluster and peered between the hub and vnet where cluster created. But still I could not able to connect the cluster from the jump host which created in hub vnet.

When I connect the cluter from jump host below is the error message.

aro@kcns-jump-host:~$ oc login $apiServer -u kubeadmin -p XXXXXXXXX

error: dial tcp: lookup api.kcns.in on 127.0.0.53:53: no such host - verify you have provided the correct host and port and that the server is currently running.

aro@kcns-jump-host:~$ echo $apiServer

https://api.kcns.in:6443/

aro@kcns-jump-host:~$

Azure Red Hat OpenShift
Azure Red Hat OpenShift
An Azure service that provides a flexible, self-service deployment of fully managed OpenShift clusters.
91 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LISBOA-4826 240 Reputation points
    2025-02-19T13:05:05.9233333+00:00

    Hello Saravanan Krishnan

    Could you please tell me if you have full access from tje JumpHost server?

    From the Jump host what is the output of both commands below?

    nslookup URL_of_aro_cluster_console/api

    and

    dig URL_of_aro_cluster_console/api

    After you performed the az login and credentials setup

    you are able to list the cluster?

    # List ARO Clusters :
    
    az aro list -o table
    
    

    Also you can check the aro cluster information and try using kubeadmin as following:

    # Get Kubeadmin Access :
    
    az aro list-credentials --name $AROCluster --resource-group $ARORG
    
    
    kubeadminPassword=$(az aro list-credentials --name $AROCluster --resource-group $ARORG --query=kubeadminPassword -o tsv)
    
    kubeadminUsername=$(az aro list-credentials --name $AROCluster --resource-group $ARORG --query=kubeadminUsername -o tsv)
    
    AROAPISrvURL=$(az aro show -g $ARORG -n $AROCluster --query apiserverProfile.url -o tsv)
    
    oc login $AROAPISrvURL -u $kubeadminUsername -p $kubeadminPassword
    
    
    

    Let me know if this information was helpful, and upvote

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.