2017-03-22 3 views
0

Ich habe meine alte Ressourcengruppe mit meinem k8s-Cluster gelöscht und eine neue erstellt. Jetzt kann kubectl die Anmeldeinformationen des neuen Clusters nicht abrufen.Wie erhalten Sie kubernetes-Anmeldedaten für einen neuen Azure-Cluster?

Als ich

>az acs kubernetes get-credentials --resource-group=myresourcegroup --name=mycluster 

    [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 
Traceback (most recent call last): 
    File "C:\Users\me\AppData\Roaming\Python\Python35\site-packages\azure\cli\main.py", line 37, in main 
    cmd_result = APPLICATION.execute(args) 
    File "C:\Users\me\AppData\Roaming\Python\Python35\site-packages\azure\cli\core\application.py", line 157, in execute 
    result = expanded_arg.func(params) 
    File "C:\Users\me\AppData\Roaming\Python\Python35\site-packages\azure\cli\core\commands\__init__.py", line 358, in _execute_command 
    raise ex 
    File "C:\Users\me\AppData\Roaming\Python\Python35\site-packages\azure\cli\core\commands\__init__.py", line 353, in _execute_command 
    result = op(client, **kwargs) if client else op(**kwargs) 
    File "C:\Users\me\AppData\Roaming\Python\Python35\site-packages\azure\cli\command_modules\acs\custom.py", line 613, in k8s_get_credentials 
    _k8s_get_credentials_internal(name, acs_info, path, ssh_key_file) 
    File "C:\Users\me\AppData\Roaming\Python\Python35\site-packages\azure\cli\command_modules\acs\custom.py", line 631, in _k8s_get_credentials_internal 
    '.kube/config', path_candidate, key_filename=ssh_key_file) 
    File "C:\Users\me\AppData\Roaming\Python\Python35\site-packages\azure\cli\command_modules\acs\acs_client.py", line 39, in SecureCopy 
    ssh.connect(host, username=user, pkey=pkey) 
    File "C:\Users\me\AppData\Roaming\Python\Python35\site-packages\paramiko\client.py", line 305, in connect 
    retry_on_signal(lambda: sock.connect(addr)) 
    File "C:\Users\me\AppData\Roaming\Python\Python35\site-packages\paramiko\util.py", line 269, in retry_on_signal 
    return function() 
    File "C:\Users\me\AppData\Roaming\Python\Python35\site-packages\paramiko\client.py", line 305, in <lambda> 
    retry_on_signal(lambda: sock.connect(addr)) 
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 

Version

>kubectl version 
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"windows/amd64"} 
Unable to connect to the server: dial tcp: lookup me.eastus.cloudapp.azure.com: getaddrinfow: No such host is known. 

betreibe ich meine vorhandenen kube Config-Datei versucht, das Löschen bekam aber den gleichen Fehler. Wie kann ich kubectl mit meinem neuen Cluster verbinden?

Antwort

0

Ich habe diesen Fehler vor, es scheint nicht installiert kubernetes CLI korrekt. Bitte versuchen Sie diesen Befehl, um CLI zu installieren:

az acs kubernetes install-cli --install-location=C:\some\directory\kubectl.exe 
Verwandte Themen