question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to connect to a kubernetes cluster on ACS

See original GitHub issue

Description

Trying to connect to a kubernetes cluster on ACS gives me the following error:

bash-4.3# az acs kubernetes get-credentials --resource-group doacskube --name doacskube
'proxycommand'
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/azure/cli/main.py", line 36, in main
    cmd_result = APPLICATION.execute(args)
  File "/usr/local/lib/python3.5/site-packages/azure/cli/core/application.py", line 212, in execute
    result = expanded_arg.func(params)
  File "/usr/local/lib/python3.5/site-packages/azure/cli/core/commands/__init__.py", line 377, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/azure/cli/core/commands/__init__.py", line 626, in _execute_command
    reraise(*sys.exc_info())
  File "/usr/local/lib/python3.5/site-packages/six.py", line 693, in reraise
    raise value
  File "/usr/local/lib/python3.5/site-packages/azure/cli/core/commands/__init__.py", line 603, in _execute_command
    result = op(client, **kwargs) if client else op(**kwargs)
  File "/usr/local/lib/python3.5/site-packages/azure/cli/command_modules/acs/custom.py", line 814, in k8s_get_credentials
    _k8s_get_credentials_internal(name, acs_info, path, ssh_key_file)
  File "/usr/local/lib/python3.5/site-packages/azure/cli/command_modules/acs/custom.py", line 835, in _k8s_get_credentials_internal
    '.kube/config', path_candidate, key_filename=ssh_key_file)
  File "/usr/local/lib/python3.5/site-packages/azure/cli/command_modules/acs/acs_client.py", line 65, in secure_copy
    proxy = paramiko.ProxyCommand(host_config['proxycommand'])
KeyError: 'proxycommand'

Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: docker, https://hub.docker.com/r/azuresdk/azure-cli-python/

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here:

bash-4.3# az --version
azure-cli (2.0.18+dev)

OS Version: What OS and version are you using?
Answer here: Docker

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: Bash

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
rjtsdlcommented, Oct 10, 2017

@derekbekoe, I made the fix. Let’s see how we can get the fix out sooner.

2reactions
naustincommented, Oct 15, 2017

A workaround. Use ‘az acs list’ to get the ‘masterProfile’ ‘fqdn’ value and insert below for ‘master-fqdn’. The following two commands should perform the action to copy down the config file from the cluster master node which ‘az acs kubernetes get-credentials’ is failing to perform. I tested this locally and it’s working for me.

mkdir $HOME/.kube scp azureuser@<master-fqdn>:.kube/config $HOME/.kube/config

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing the cluster — Kubernetes in ACS | by Somak Das
Net core application using Docker, ACS and kubernetes”, we have seen how to create a Kubernetes cluster using Azure Container Service and run...
Read more >
Red Hat Advanced Cluster Security for Kubernetes Support ...
The ACS solution offers visibility into the security of your cluster, vulnerability management, and security compliance through auditing, network segmentation ...
Read more >
Create Custom Azure Kubernetes Clusters with ACS Engine
Connecting to the Cluster​​ First thing, you need to install KubeCtl, downloads for specified OS's can be found here: Windows Kubectl. OSX  ......
Read more >
Using ACS Engine to build private Kubernetes clusters with ...
The next step on our way to the private Kubernetes cluster with bring your own VNET is the generation of the Azure Resource...
Read more >
Installing by using an Operator - OpenShift Documentation
Install the Red Hat Advanced Cluster Security for Kubernetes Operator from OperatorHub in the cluster where you want to install Central.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found