Closed khaledjendi closed 5 years ago
it seems that your kubefed2 binary is older than the server.
kubefed2 Do you think I should change the kubectl to an older version? I can see GoVersion:"go1.11.2" in kubefed2 and kubectl GitVersion:"v1.11.3"
i guess:
the user guide for a tutorial
you followed so that someone can fix itGenerated error:
ubuntu@khaled-jumphost1:~/federation-v2$ kubefed2 enable ClusterRoleBinding
customresourcedefinition.apiextensions.k8s.io/federatedclusterrolebindings.primitives.federation.k8s.io created
customresourcedefinition.apiextensions.k8s.io/federatedclusterrolebindingplacements.primitives.federation.k8s.io created
customresourcedefinition.apiextensions.k8s.io/federatedclusterrolebindingoverrides.primitives.federation.k8s.io created
F0303 11:10:24.698934 9946 enable.go:117] error: Error creating FederatedTypeConfig "clusterrolebindings.rbac.authorization.k8s.io": FederatedTypeConfig.core.federation.k8s.io "clusterrolebindings.rbac.authorization.k8s.io" is invalid: []: Invalid value: map[string]interface {}{"apiVersion":"core.federation.k8s.io/v1alpha1", "metadata":map[string]interface {}{"uid":"f17d4541-3da4-11e9-969c-fa163e5c3838", "selfLink":"", "name":"clusterrolebindings.rbac.authorization.k8s.io", "creationTimestamp":"2019-03-03T11:10:24Z", "namespace":"federation-system", "generation":1}, "spec":map[string]interface {}{"target":map[string]interface {}{"group":"rbac.authorization.k8s.io", "version":"v1", "kind":"ClusterRoleBinding", "pluralName":"clusterrolebindings"}, "namespaced":false, "comparisonField":"ResourceVersion", "propagationEnabled":true, "template":map[string]interface {}{"group":"primitives.federation.k8s.io", "version":"v1alpha1", "kind":"FederatedClusterRoleBinding", "pluralName":"federatedclusterrolebindings"}, "placement":map[string]interface {}{"version":"v1alpha1", "kind":"FederatedClusterRoleBindingPlacement", "pluralName":"federatedclusterrolebindingplacements", "group":"primitives.federation.k8s.io"}, "override":map[string]interface {}{"group":"primitives.federation.k8s.io", "version":"v1alpha1", "kind":"FederatedClusterRoleBindingOverride", "pluralName":"federatedclusterrolebindingoverrides"}}, "kind":"FederatedTypeConfig"}: validation failure list:
spec.federatedType in body is required
@jSchnitzer1 That error seems to indicate that the version of the federation API you are using is less than v0.0.6
. You will need to deploy a v0.0.6
control plane to use kubefed2 v0.0.6
. kubfed2 as of v0.0.6 expects FederatedTypeConfig
to have the federatedType
field added in that release.
I don't think this issue is actionable. Please feel free to reopen if you still need assistance or contact me on #sig-multicluster in kubernetes.slack.com.
In the user guide for a tutorial of how to deploy the federation v2 control plane, everything went fine until applying the example/sample1. In other worlds, I could join cluster1 and cluster2 and when I describe the federated clusters I can see healthz is ok (I posted the result of federated clusters description)
when I tried to applying the example (kubectl apply -R -f example/sample1), I encountered with error no matches for kind "FederatedClusterRoleBinding" in version "types.federation.k8s.io/v1alpha1" so I tried to enable ClusterRoleBinding using kubefed2 v0.05 then I got error in creating this resource
/kind bug