Azure-docs: This guide seems not working now.

Created on 18 Jul 2018  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

I got below error log when run -
$ kubectl logs -f deploy/addon-http-application-routing-external-dns -n kube-system

time="2018-07-18T04:33:07Z" level=error msg="azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://management.azure.com/subscriptions/79961948-8a62-407d-85a8-865f0b8d8294/resourceGroups/MC_aks-poc_akshttp_westeurope/providers/Microsoft.Network/dnsZones?api-version=2016-04-01: StatusCode=0 -- Original Error: adal: Failed to execute the refresh request. Error = 'Post https://login.microsoftonline.com/749d223b-ee17-42ca-a3db-c069ed7062af/oauth2/token?api-version=1.0: dial tcp: i/o timeout'"

What's the problem?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

container-servicsvc cxp docs-experience triaged

Most helpful comment

@MicahMcKittrick-MSFT Looks like you may need to clean up your kubectl config as there's duplicate environments set. Brute force is to remove your existing kubectl config (rm ~/.kube/config) and then get the credentials again (az aks get-credentials).

All 6 comments

Thanks for the feedback! We are currently investigating and will update you shortly.

@lachie83 could you help on this one? I am trying to run through the doc but I am actually getting a different error:

micah@Azure:~$ kubectl apply -f samples-http-application-routing.yaml
error: Error loading config file "/home/micah/.kube/config": error converting *[]NamedCluster into *map[string]*api.Cluster: duplicate name "myAKSCluster" in list: [{myAKSCluster {https://myaksclust-micahresourcegro-b83c1e-9282e6cf.hcp.eastus.azmk8s.io:443 false

@MicahMcKittrick-MSFT Looks like you may need to clean up your kubectl config as there's duplicate environments set. Brute force is to remove your existing kubectl config (rm ~/.kube/config) and then get the credentials again (az aks get-credentials).

Thanks @iainfoulds. I will give that a go and try to work through the doc again :)

@iainfoulds @lachie83 I still cannot seem to get the doc to work as I walk through it. Although my error is still slightly different:

micah@Azure:~$ kubectl logs -f deploy/addon-http-application-routing-external-dns -n kube-systemtime="2018-07-18T19:59:39Z" level=info msg="config: &{Master: KubeConfig: Sources:[service ingress] Namespace: AnnotationFilter:kubernetes.io/ingress.class=addon-http-application-routing FQDNTemplate: Compatibility: PublishInternal:false Provider:azure GoogleProject: DomainFilter:[60af853de19a484289c3.eastus.aksapp.io] AWSZoneType: AzureConfigFile:/etc/kubernetes/azure.json AzureResourceGroup:MC_myAKSCluster_myAKSCluster_eastus CloudflareProxied:false InfobloxGridHost: InfobloxWapiPort:443 InfobloxWapiUsername:admin InfobloxWapiPassword: InfobloxWapiVersion:2.3.1 InfobloxSSLVerify:true InMemoryZones:[] Policy:sync Registry:txt TXTOwnerID:default TXTPrefix: Interval:3m0s Once:false DryRun:false LogFormat:text MetricsAddress::7979 LogLevel:info}"
time="2018-07-18T19:59:39Z" level=info msg="Connected to cluster at https://10.0.0.1:443"
time="2018-07-18T20:00:10Z" level=error msg="Get https://10.0.0.1:443/api/v1/services: dial tcp10.0.0.1:443: i/o timeout"

Would either of you be able to run through it to see if it is just us?

It seems working today.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

behnam89 picture behnam89  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

varma31 picture varma31  Â·  3Comments

bityob picture bityob  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments