External-dns: Cloudflare: Invalid format for X-Auth-Key header

Created on 18 Sep 2017  路  3Comments  路  Source: kubernetes-sigs/external-dns

Hi,

I just followed the documentation here: https://github.com/kubernetes-incubator/external-dns/blob/master/docs/tutorials/cloudflare.md but did not succeed to setup external-dns with cloudflare:

time="2017-09-18T21:07:47Z" level=info msg="config: &{Master: KubeConfig: Sources:[ingress] Namespace: FQDNTemplate: Compatibility: Provider:cloudflare GoogleProject: DomainFilter:[] AzureConfigFile:/etc/kubernetes/azure.json AzureResourceGroup: Policy:sync Registry:txt TXTOwnerID:default TXTPrefix: Interval:1m0s Once:false DryRun:false LogFormat:text MetricsAddress::7979 Debug:false}" 
time="2017-09-18T21:07:47Z" level=info msg="Connected to cluster at https://10.3.0.1:443" 
time="2017-09-18T21:07:47Z" level=error msg="error from makeRequest: HTTP status 400: content "{\"success\":false,\"errors\":[{\"code\":6003,\"message\":\"Invalid request headers\",\"error_chain\":[{\"code\":6103,\"message\":\"Invalid format for X-Auth-Key header\"}]}],\"messages\":[],\"result\":null}"" 

I'm running Kubernetes 1.7.5 on bare metal
Any idea ?

Thanks

Most helpful comment

Anyone else arriving here - make sure you use the API key and not an API token. The CloudFlare UI leads you down the path of creating a new token, but you need to API key.

All 3 comments

Make sure you correctly define the CF_API_KEY environment variable. If you can't make it run, please post the manifests you are using, that will make it easier to understand what could be going on.

You're right, I took zone id key. My mistake sorry. Thanks

Anyone else arriving here - make sure you use the API key and not an API token. The CloudFlare UI leads you down the path of creating a new token, but you need to API key.

Was this page helpful?
0 / 5 - 0 ratings