<p>I am trying to setup Kubernetes Federation on GKE following the instructions in <a href="https://kubernetes.io/docs/tasks/federation/set-up-cluster-federation-kubefed/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/federation/set-up-cluster-federation-kubefed/</a>. The Kubernetes version in my nodes is <code>v1.9.7-gke.6</code>. I ran the command <code>kubefed init federation1 --host-cluster-context=[CONTEXT] --dns-provider="google-clouddns" --dns-zone-name=[DNS_ZONE]</code>. This would stay at <code>Waiting for federation control plane to come up........</code> forever.</p>

<p>Checking the status of the apiserver pod I saw this error message:</p>

<p><code>Failed to pull image "gcr.io/k8s-jkns-e2e-gce-federation/fcp-amd64:v1.10.0-alpha.0": rpc error: code = Unknown desc = Error response from daemon: Get https://gcr.io/v2/k8s-jkns-e2e-gce-federation/fcp-amd64/manifests/v1.10.0-alpha.0: denied: Token exchange failed for project 'k8s-jkns-e2e-gce-federation'. Please enable or contact project owners to enable the Google Container Registry API in Cloud Console at https://console.cloud.google.com/apis/api/containerregistry.googleapis.com/overview?project=k8s-jkns-e2e-gce-federation before performing this operation.</code></p>

<p>Does anyone know how to resolve this? Thanks.</p>

<p>It seems like you are trying to access an API, which must be enabled first.
Can you check if this is as follows:
<a href="https://i.stack.imgur.com/yKwFE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yKwFE.png" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/vRlfu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vRlfu.png" alt="enter image description here"></a></p>
