Closed oryagel closed 7 years ago
Hello,
This is usually caused by an issue with the credentials you provided.
I'm guessing this is an issue with your secret
. Did you correctly encode everything in base64? Even though the different private keys are already base64 encoded, you need to encode them once more.
That was it, double base64 encoding.
Thanks
I now encountered a similar issue, and I double-check that the secrets are base64 encoded twice. After connecting to the VM that does not connect to the cluste I can see the following in syslog:
docker[7186]: I1220 15:20:06.122771 7694 feature_gate.go:144] feature gates: map[Accelerators:true]
docker[7186]: I1220 15:20:06.124061 7694 azure.go:174] azure: using client_id+client_secret to retrieve access token
docker[7186]: I1220 15:20:06.124209 7694 server.go:439] Successfully initialized cloud provider: "azure" from the config file: "/etc/kubernetes/azure.json"
docker[7186]: I1220 15:20:06.124235 7694 server.go:740] cloud provider determined current node name to be <>
docker[7186]: W1220 15:20:06.126634 7694 server.go:474] New kubeClient from clientConfig error: tls: private key does not match public key
docker[7186]: W1220 15:20:06.127923 7694 server.go:482] New kubeClient from clientConfig error: tls: private key does not match public key
docker[7186]: W1220 15:20:06.129229 7694 server.go:491] Failed to create API Server client: tls: private key does not match public key
docker[7186]: W1220 15:20:06.130440 7694 server.go:500] Failed to create API Server client for heartbeat: tls: private key does not match public key
kernel: [ 116.725179] eth0: renamed from vethedfcdec
So it look like the issue is with the private key - I think I took the correct one from the deployment.json.parameters
. What can I check?
It turned out the issue was how I created the base64 encoded string. I used echo <> | base64
instead of echo -n <> | base64
. Without -n
, it is also encoding the new line.
Hi, The autoscaler work as expected and add VMs when needed. We can see in the Azure portal that the autoscaler create new deployment. The problem is that the new VMs do not appear in the cluster. What can be the issue?
This is our configuration