尝试连接到 Kubernetes 网络时出错 UI
Errors trying to connect to Kubernetes web UI
遵循说明here:
然而,尝试它的结果是:
$ az acs kubernetes browse -g myResourcrGroup -n myK8SCluster
私钥文件已加密
回溯(最近调用最后):
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/main.py", line 36, in main
cmd_result = APPLICATION.execute(args)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/application.py", line 203, in execute
result = expanded_arg.func(params)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 278, in __call__
return self.handler(*args, **kwargs)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 473, in _execute_command
reraise(*sys.exc_info())
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 450, in _execute_command
result = op(client, **kwargs) if client else op(**kwargs)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py", line 150, in k8s_browse
_k8s_browse_internal(name, acs_info, disable_browser, ssh_key_file)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py", line 160, in _k8s_browse_internal
_k8s_get_credentials_internal(name, acs_info, browse_path, ssh_key_file)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py", line 711, in _k8s_get_credentials_internal
'.kube/config', path_candidate, key_filename=ssh_key_file)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/acs_client.py", line 49, in SecureCopy
ssh.connect(host, username=user, pkey=pkey)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/paramiko/client.py", line 381, in connect
look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/paramiko/client.py", line 622, in _auth
raise saved_exception
PasswordRequiredException:私钥文件已加密
您可以在 GitHub 上查看类似的 issue。
您是否在客户端 PC 上执行 az acs kubernetes get-credentials --resource-group=myResourcrGroup --name=myK8sCluster
?我建议你检查一下你的私钥,然后再执行命令。
您可以使用 azure -v
检查您的 Azure CLI 版本。我的版本是 0.10.9。如果还是不行,建议你重新安装最新版本的Azure CLI。
遵循说明here:
然而,尝试它的结果是:
$ az acs kubernetes browse -g myResourcrGroup -n myK8SCluster
私钥文件已加密 回溯(最近调用最后):
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/main.py", line 36, in main
cmd_result = APPLICATION.execute(args)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/application.py", line 203, in execute
result = expanded_arg.func(params)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 278, in __call__
return self.handler(*args, **kwargs)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 473, in _execute_command
reraise(*sys.exc_info())
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 450, in _execute_command
result = op(client, **kwargs) if client else op(**kwargs)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py", line 150, in k8s_browse
_k8s_browse_internal(name, acs_info, disable_browser, ssh_key_file)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py", line 160, in _k8s_browse_internal
_k8s_get_credentials_internal(name, acs_info, browse_path, ssh_key_file)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py", line 711, in _k8s_get_credentials_internal
'.kube/config', path_candidate, key_filename=ssh_key_file)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/acs_client.py", line 49, in SecureCopy
ssh.connect(host, username=user, pkey=pkey)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/paramiko/client.py", line 381, in connect
look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/paramiko/client.py", line 622, in _auth
raise saved_exception
PasswordRequiredException:私钥文件已加密
您可以在 GitHub 上查看类似的 issue。
您是否在客户端 PC 上执行 az acs kubernetes get-credentials --resource-group=myResourcrGroup --name=myK8sCluster
?我建议你检查一下你的私钥,然后再执行命令。
您可以使用 azure -v
检查您的 Azure CLI 版本。我的版本是 0.10.9。如果还是不行,建议你重新安装最新版本的Azure CLI。