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

googleapi: got HTTP response code 404 with body: Not Found #346

Closed
james-masson opened this issue Sep 22, 2017 · 1 comment
Closed

googleapi: got HTTP response code 404 with body: Not Found #346

james-masson opened this issue Sep 22, 2017 · 1 comment

Comments

@james-masson
Copy link

Hi,

I deployed 0.4.3 to a 1.7.5 GKE cluster via the official helm package - configured like this...

  external-dns:
    Container ID:	docker://64d37920fb39a816e5dd500ee853171cc7853be6d99c513f7fd5e1b42e39044a
    Image:		registry.opensource.zalan.do/teapot/external-dns:v0.4.3
    Image ID:		docker-pullable://registry.opensource.zalan.do/teapot/external-dns@sha256:d2583097e615c825e212b71a0ae8030ad9a566cbc1c2c610ce334d020928fd6c
    Port:		7979/TCP
    Args:
      --debug
      --policy=upsert-only
      --provider=google
      --source=service
      --source=ingress

I only get errors in the logs, no matter whether I have ingress services to request DNS services or not.

time="2017-09-22T11:21:34Z" level=info msg="config: &{Master: KubeConfig: Sources:[service ingress] Namespace: FQDNTemplate: Compatibility: Provider:google GoogleProject: DomainFilter:[] AzureConfigFile:/etc/kubernetes/azure.json AzureResourceGroup: Policy:upsert-only Registry:txt TXTOwnerID:default TXTPrefix: Interval:1m0s Once:false DryRun:false LogFormat:text MetricsAddress::7979 Debug:true}"
time="2017-09-22T11:21:34Z" level=info msg="Connected to cluster at https://172.16.16.1:443"
time="2017-09-22T11:21:34Z" level=error msg="googleapi: got HTTP response code 404 with body: Not Found"
time="2017-09-22T11:22:34Z" level=error msg="googleapi: got HTTP response code 404 with body: Not Found"
time="2017-09-22T11:23:34Z" level=error msg="googleapi: got HTTP response code 404 with body: Not Found"
time="2017-09-22T11:24:34Z" level=error msg="googleapi: got HTTP response code 404 with body: Not Found"

My GKE cluster has a minimum of these permissions - although this doesn't seem to be a permissions error.

      "https://www.googleapis.com/auth/compute",
      "https://www.googleapis.com/auth/devstorage.read_only",
      "https://www.googleapis.com/auth/logging.write",
      "https://www.googleapis.com/auth/monitoring",
      "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
    ]

Any ideas what's going on?

thanks

James M

@james-masson
Copy link
Author

Figured it out...

The documentation with the helm release is incomplete: https://github.com/kubernetes/charts/tree/master/stable/external-dns

As well as setting provider: google, you need to set:

extraArgs:
    google-project: "my-project"

too

lou-lan pushed a commit to lou-lan/external-dns that referenced this issue May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant