kubernetes-retired / kubefed

Kubernetes Cluster Federation
Apache License 2.0
2.5k stars 531 forks source link

cluster 1 and cluster2 not ready #1498

Closed lemon-360 closed 1 year ago

lemon-360 commented 2 years ago

ubectl -n kube-federation-system get kubefedclusters NAME AGE READY cluster1 47m
cluster2 46m

**kubectl -n kube-federation-system describe kubefedclusters.core.kubefed.io cluster2 Name: cluster2 Namespace: kube-federation-system Labels: Annotations: API Version: core.kubefed.io/v1beta1 Kind: KubeFedCluster Metadata: Creation Timestamp: 2022-03-14T09:52:17Z Generation: 1 Managed Fields: API Version: core.kubefed.io/v1beta1 Fields Type: FieldsV1 fieldsV1: f:spec: .: f:apiEndpoint: f:caBundle: f:proxyURL: f:secretRef: .: f:name: Manager: kubefedctl Operation: Update Time: 2022-03-14T09:52:17Z API Version: core.kubefed.io/v1beta1 Fields Type: FieldsV1 fieldsV1: f:status: .: f:conditions: Manager: controller-manager Operation: Update Subresource: status Time: 2022-03-14T09:52:19Z Resource Version: 3212 UID: c1c4b5a9-8a07-4fdb-836c-bbd6409aa94e Spec: API Endpoint: https://127.0.0.1:63219 Ca Bundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURCakNDQWU2Z0F3SUJBZ0lCQVRBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwdGFXNXAKYTNWaVpVTkJNQjRYRFRJeU1ESXhNekF6TURneU1Gb1hEVE15TURJeE1qQXpNRGd5TUZvd0ZURVRNQkVHQTFVRQpBeE1LYldsdWFXdDFZbVZEUVRDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTmp2ClVrcHJPd0VJaE9UR3pDZXk2STJOLzJ5QW8xQk5XR0UvNWUvdmlQZEhyYVBxS0k5eWpZUEJ1TUFteGxFbXp6VzcKVkdIYjRZNW5HdlBiQmR2RkR4dUI5cThxVmg2WUFnRFJuMmRJMXEydUd0alp2UzlYd0VVcFZ1VjNldzd6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T10:14:00Z Last Transition Time: 2022-03-14T09:52:19Z Message: cluster is not reachable Reason: ClusterNotReachable Status: True Type: Offline Events: Type Reason Age From Message


Warning RetrievingClusterHealthFailed 108s (x121 over 21m) kubefedcluster-controller Failed to retrieve health of the cluster: Get "https://127.0.0.1:63219/healthz?timeout=3s": dial tcp 127.0.0.1:63219: connect: connection refused

lemon-360 commented 2 years ago

use macOS minikube env

ameena007 commented 2 years ago

I used minikube but issue is still there

ameena007 commented 2 years ago

(base)kubefed % kubectl -n kube-federation-system describe kubefedclusters --cluster=master Name: master Namespace: kube-federation-system Labels: Annotations: API Version: core.kubefed.io/v1beta1 Kind: KubeFedCluster Metadata: Creation Timestamp: 2022-05-02T12:01:37Z Generation: 1 Managed Fields: API Version: core.kubefed.io/v1beta1 Fields Type: FieldsV1 fieldsV1: f:spec: .: f:apiEndpoint: f:caBundle: f:proxyURL: f:secretRef: .: f:name: Manager: kubefedctl Operation: Update Time: 2022-05-02T12:01:37Z API Version: core.kubefed.io/v1beta1 Fields Type: FieldsV1 fieldsV1: f:status: .: f:conditions: Manager: controller-manager Operation: Update Subresource: status Time: 2022-05-02T12:01:38Z Resource Version: 1232 UID: 36b402f0-b0fc-431c-bfbf-883b38386ebe Spec: API Endpoint: https://127.0.0.1:49374 Ca Bundle: Proxy URL:
Secret Ref: Name: master-bzck5 Status: Conditions: Last Probe Time: 2022-05-02T12:03:29Z Last Transition Time: 2022-05-02T12:01:38Z Message: cluster is not reachable Reason: ClusterNotReachable Status: True Type: Offline Events: Type Reason Age From Message


Warning RetrievingClusterHealthFailed 7s (x12 over 118s) kubefedcluster-controller Failed to retrieve health of the cluster: Get "https://127.0.0.1:49374/healthz?timeout=3s": dial tcp 127.0.0.1:49374: connect: connection refused

minikube version minikube version: v1.25.2 commit: 362d5fdc0a3dbee389b3d3f1034e8023e72bd3a7

kubefedctl version kubefedctl version: version.Info{Version:"v0.9.0-7-g90dd17b10", GitCommit:"90dd17b108e80fa6b1fe49366a1daf5f650bb807", GitTreeState:"clean", BuildDate:"2022-02-15T10:38:38Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"darwin/amd64"}

kubectl version Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.5", GitCommit:"5c99e2ac2ff9a3c549d9ca665e7bc05a3e18f07e", GitTreeState:"clean", BuildDate:"2021-12-16T08:38:33Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.3", GitCommit:"816c97ab8cff8a1c72eccca1026f7820e93e0d25", GitTreeState:"clean", BuildDate:"2022-01-25T21:19:12Z", GoVersion:"go1.17.6", Compiler:"gc", Platform:"linux/amd64"}

ameena007 commented 2 years ago

Posted on StackOverflow: https://stackoverflow.com/questions/72094070/unable-to-implement-multicluster-fedeartion-using-kubefed . Somehow not able to find a working example on mac with minikube and latest helm, Kubernetes version.

irfanurrehman commented 2 years ago

Just noticed this, will check it out over the weekend

OneCricketeer commented 2 years ago

You need to use a script like this. This one is for kind, but I believe similar steps are required for minikube.

https://github.com/kubernetes-sigs/kubefed/blob/master/scripts/fix-joined-kind-clusters.sh

I also documented k3d working in #1412

k8s-triage-robot commented 2 years ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 1 year ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot commented 1 year ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

k8s-ci-robot commented 1 year ago

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to [this](https://github.com/kubernetes-sigs/kubefed/issues/1498#issuecomment-1324276827): >The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. > >This bot triages issues according to the following rules: >- After 90d of inactivity, `lifecycle/stale` is applied >- After 30d of inactivity since `lifecycle/stale` was applied, `lifecycle/rotten` is applied >- After 30d of inactivity since `lifecycle/rotten` was applied, the issue is closed > >You can: >- Reopen this issue with `/reopen` >- Mark this issue as fresh with `/remove-lifecycle rotten` >- Offer to help out with [Issue Triage][1] > >Please send feedback to sig-contributor-experience at [kubernetes/community](https://github.com/kubernetes/community). > >/close not-planned > >[1]: https://www.kubernetes.dev/docs/guide/issue-triage/ Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.