Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External DNS is not creating DNS records in Azure resource #177

Closed
Gordonby opened this issue Jan 10, 2022 · 3 comments · Fixed by #179
Closed

External DNS is not creating DNS records in Azure resource #177

Gordonby opened this issue Jan 10, 2022 · 3 comments · Fixed by #179
Assignees
Labels
ci-cd sample 🤖 Sample code in a GitHub action workflow

Comments

@Gordonby
Copy link
Collaborator

Gordonby commented Jan 10, 2022

Describe the bug
An error is occurring when the Java app smoke test step runs in the scheduled CI/CD

time="2022-01-10T10:32:43Z" level=info msg="Using managed identity extension to retrieve access token for Azure API."
time="2022-01-10T10:32:43Z" level=info msg="Resolving to user assigned identity, client id is ***REDACTED***."
time="2022-01-10T10:32:48Z" level=error msg="azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://management.azure.com/subscript
ions/***REDACTED***/resourceGroups/***REDACTED***/providers/Microsoft.Network/dnsZones?api-version=2018-05-01: StatusCode=0 -- Original Error: the MSI
endpoint is not available. Failed HTTP request to MSI endpoint: Get \"http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01\": dial tcp 169.254.1
69.254:80: i/o timeout"

To Reproduce
Re-Run the action : https://github.com/Azure/Aks-Construction/runs/4760776084?check_suite_focus=true

Plan

  1. Strap up the External DNS Verification step to throw an error
    image
@Gordonby Gordonby added the ci-cd sample 🤖 Sample code in a GitHub action workflow label Jan 10, 2022
@Gordonby
Copy link
Collaborator Author

Deleting and recreating the cluster has fixed the issue.

image

@Gordonby
Copy link
Collaborator Author

Need to investigate if this was just a blimp in AKS, or if the NetworkPolicy default deny interfered.

@Gordonby Gordonby self-assigned this Jan 10, 2022
@Gordonby
Copy link
Collaborator Author

It was the NetworkPolicy.... 😆

New version of the ExternalDNS helm chart (with NetworkPolicy for egress): https://github.com/Gordonby/minihelm/tree/main/samples/externaldns

@Gordonby Gordonby linked a pull request Jan 12, 2022 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-cd sample 🤖 Sample code in a GitHub action workflow
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant