kops: kubefed v1.7.2 Unable to join cluster to federation - error: server does not support API version "federation/v1beta1"
I am working on creating a federation with three clusters created with kops. The clusters spin up and I am able to init the federation successfully. However when I try to join one of the clusters I receive an error error: server does not support API version "federation/v1beta1"
Here are the steps I took:
#Create the "master"
kops create cluster --zones=us-west-1a federation-master.example.com
kops edit cluster federation-master.example.com
-- Update Kubernetes version 1.7.0 to 1.7.2
kops update cluster federation-master.example.com --yes
#Create the two "slaves"
kops create cluster --zones=us-east-2a ohio-slave.example.com
kops edit cluster ohio-slave.example.com
-- Update Kubernetes version 1.7.0 to 1.7.2
kops update cluster ohio-slave.example.com --yes
kops create cluster --zones=us-west-2a oregon-slave.example.com
kops edit cluster oregon-slave.example.com
-- Update Kubernetes version 1.7.0 to 1.7.2
kops update cluster oregon-slave.example.com --yes
#Initialize the federation
kubefed init testenv-federation --host-cluster-context=federation-master.example.com --dns-provider="aws-route53" --dns-zone-name="example.com."
Creating a namespace federation-system for federation system components... done
Creating federation control plane service..... done
Creating federation control plane objects (credentials, persistent volume claim)... done
Creating federation component deployments... done
Updating kubeconfig... done
Waiting for federation control plane to come up................................................................................ done
Federation API server is running at: a1<..>.us-west-1.elb.amazonaws.com
#Testing connectivity to the newly created federation
kubectl create ns ops --context=testenv-federation
kubectl get ns --context=testenv-federation
namespace "ops" created
NAME STATUS AGE
ops Active 1s
#Joining first cluster to the federation
kubefed join ohio --host-cluster-context=federation-master.example.com --cluster-context=ohio-slave.example.com
error: server does not support API version "federation/v1beta1"
kops version
Version 1.7.0 (git-e04c29d)
kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.2", GitCommit:"922a86cfcd65915a9b2f69f3f193b8907d741d9c", GitTreeState:"clean", BuildDate:"2017-07-21T08:23:22Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.2", GitCommit:"922a86cfcd65915a9b2f69f3f193b8907d741d9c", GitTreeState:"clean", BuildDate:"2017-07-21T08:08:00Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
kubefed version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.2", GitCommit:"922a86cfcd65915a9b2f69f3f193b8907d741d9c", GitTreeState:"clean", BuildDate:"2017-07-21T08:23:22Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.2", GitCommit:"922a86cfcd65915a9b2f69f3f193b8907d741d9c", GitTreeState:"clean", BuildDate:"2017-07-21T08:08:00Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
This is not the first attempt at running federated kops clusters. I have successfully joined two “slave” clusters with kubefed v1.6.7 on top of clusters created with kops v.1.6.2. There are some features in 1.7 that I would like to leverage so I wanted to get a new federation created with kubefed/kubectl v1.7.2.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 15 (7 by maintainers)
We really need a document about federation. Ran across this the other day https://kumorilabs.com/blog/k8s-10-setup-kubernetes-federation-different-aws-regions/
@david92rl - I tried updating my existing cluster as well as creating new clusters with the information you provided, but I am still receiving the same error
error: server does not support API version "federation/v1beta1"What version of kops and kubectl/kubefed are you using with these settings?