Comments (5)
@ycyaoxdu , Could I know how to reproduce the error, Thanks
from clusteradm.
@xauthulei The following content shows all i did:
root@yuchen clusteradm [modify-e2e-test] $ kind create cluster --name hub
Creating cluster "hub" ...
✓ Ensuring node image (kindest/node:v1.21.1) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
Set kubectl context to "kind-hub"
You can now use your cluster with:
kubectl cluster-info --context kind-hub
Thanks for using kind! 😊
root@yuchen clusteradm [modify-e2e-test] $ clusteradm init --wait
Service account token successfully signed.
CRD successfully registered.
Registration operator is now available.
ClusterManager registration is now available.
The multicluster hub control plane has been initialized successfully!
You can now register cluster(s) to the hub control plane. Log onto those cluster(s) and run the following command:
clusteradm join --hub-token eyJhbGciOiJSUzI1NiIsImtpZCI6Ii1pUHB5TU9OZE11a3d3enNMZjdUd21NTEZieW5wX0ZTRjJ5ZFoxUWxwbWcifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJvcGVuLWNsdXN0ZXItbWFuYWdlbWVudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJjbHVzdGVyLWJvb3RzdHJhcC10b2tlbi13dHRiOSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJjbHVzdGVyLWJvb3RzdHJhcCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjVkZjdjODI0LTU4NjAtNDFlZS05OWNjLTYxZTg1NmZjNTI2MiIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpvcGVuLWNsdXN0ZXItbWFuYWdlbWVudDpjbHVzdGVyLWJvb3RzdHJhcCJ9.W3O0uiVinFXHhkqJroGsZJc9vnMJ8QxQbk5y0ZoXPK7yvtCb93syBX2x4EE6vQYu6pBKD-6UECVteby7DnS6O7APy5UylbeA0qYdUWpmqaMx_7nDBFk251LyE4CkP_mof5a3EsEtbG8quEGA707pmVkNFLbVyitwdQdUtAiYzmn9ypoh1S7UBy3fZY9Puwms33ylgq6yLchGo0azl5oNDyzSzaJZR1fpj0OE9xJYiRljftIWN7ZlvS_XtJrnCVAEgZkf41c34JplNpeEl8U4odqyKW_cxIvk7grVdObz1nGCSHXFykdulCm4VpPmdaZCaG2PHV0vCnPOAYmoN_dpIQ --hub-apiserver https://127.0.0.1:33315 --wait --cluster-name <cluster_name>
Replace <cluster_name> with a cluster name of your choice. For example, cluster1.
root@yuchen clusteradm [modify-e2e-test] $ kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-558bd4d5db-cxv5h 1/1 Running 0 98s
kube-system coredns-558bd4d5db-hhrp7 1/1 Running 0 98s
kube-system etcd-hub-control-plane 1/1 Running 0 113s
kube-system kindnet-2sgd7 1/1 Running 0 98s
kube-system kube-apiserver-hub-control-plane 1/1 Running 0 114s
kube-system kube-controller-manager-hub-control-plane 1/1 Running 0 101s
kube-system kube-proxy-2nvxw 1/1 Running 0 98s
kube-system kube-scheduler-hub-control-plane 1/1 Running 0 101s
local-path-storage local-path-provisioner-547f784dff-rc9xs 1/1 Running 0 98s
open-cluster-management-hub cluster-manager-placement-controller-66485c45fd-rrtqs 1/1 Running 0 64s
open-cluster-management-hub cluster-manager-registration-controller-5cf594c555-lw6r2 1/1 Running 0 64s
open-cluster-management-hub cluster-manager-registration-webhook-5df7b5487f-5d5z4 1/1 Running 0 64s
open-cluster-management-hub cluster-manager-work-webhook-5d4dfdc6f5-7dt5j 1/1 Running 0 64s
open-cluster-management cluster-manager-6bc5bd8856-t8gtb 1/1 Running 0 77s
root@yuchen clusteradm [modify-e2e-test] $ kubectl get deploy -A
NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE
kube-system coredns 2/2 2 2 2m2s
local-path-storage local-path-provisioner 1/1 1 1 2m
open-cluster-management-hub cluster-manager-placement-controller 1/1 1 1 73s
open-cluster-management-hub cluster-manager-registration-controller 1/1 1 1 73s
open-cluster-management-hub cluster-manager-registration-webhook 1/1 1 1 73s
open-cluster-management-hub cluster-manager-work-webhook 1/1 1 1 73s
open-cluster-management cluster-manager 1/1 1 1 86s
root@yuchen clusteradm [modify-e2e-test] $ kubectl get crd -A
NAME CREATED AT
addonplacementscores.cluster.open-cluster-management.io 2022-02-24T05:53:11Z
clustermanagementaddons.addon.open-cluster-management.io 2022-02-24T05:53:10Z
clustermanagers.operator.open-cluster-management.io 2022-02-24T05:53:00Z
managedclusteraddons.addon.open-cluster-management.io 2022-02-24T05:53:10Z
managedclusters.cluster.open-cluster-management.io 2022-02-24T05:53:10Z
managedclustersetbindings.cluster.open-cluster-management.io 2022-02-24T05:53:10Z
managedclustersets.cluster.open-cluster-management.io 2022-02-24T05:53:10Z
manifestworks.work.open-cluster-management.io 2022-02-24T05:53:10Z
placementdecisions.cluster.open-cluster-management.io 2022-02-24T05:53:11Z
placements.cluster.open-cluster-management.io 2022-02-24T05:53:11Z
root@yuchen clusteradm [modify-e2e-test] $ clusteradm clean
2022/02/24 05:54:53 Wait to delete cluster manager resource: cluster-manager.
2022/02/24 05:55:55 Cluster Manager resource should be deleted firstly.
root@yuchen clusteradm [modify-e2e-test] $ kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-558bd4d5db-cxv5h 1/1 Running 0 3m51s
kube-system coredns-558bd4d5db-hhrp7 1/1 Running 0 3m51s
kube-system etcd-hub-control-plane 1/1 Running 0 4m6s
kube-system kindnet-2sgd7 1/1 Running 0 3m51s
kube-system kube-apiserver-hub-control-plane 1/1 Running 0 4m7s
kube-system kube-controller-manager-hub-control-plane 1/1 Running 0 3m54s
kube-system kube-proxy-2nvxw 1/1 Running 0 3m51s
kube-system kube-scheduler-hub-control-plane 1/1 Running 0 3m54s
local-path-storage local-path-provisioner-547f784dff-rc9xs 1/1 Running 0 3m51s
open-cluster-management cluster-manager-6bc5bd8856-t8gtb 1/1 Running 0 3m30s
root@yuchen clusteradm [modify-e2e-test] $ kubectl get deploy -A
NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE
kube-system coredns 2/2 2 2 4m17s
local-path-storage local-path-provisioner 1/1 1 1 4m15s
open-cluster-management cluster-manager 1/1 1 1 3m41s
root@yuchen clusteradm [modify-e2e-test] $ kubectl get crd -A
NAME CREATED AT
clustermanagers.operator.open-cluster-management.io 2022-02-24T05:53:00Z
root@yuchen clusteradm [modify-e2e-test] $ clusteradm clean
The multicluster hub control plane has been clean up successfully!
root@yuchen clusteradm [modify-e2e-test] $ kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-558bd4d5db-cxv5h 1/1 Running 0 4m21s
kube-system coredns-558bd4d5db-hhrp7 1/1 Running 0 4m21s
kube-system etcd-hub-control-plane 1/1 Running 0 4m36s
kube-system kindnet-2sgd7 1/1 Running 0 4m21s
kube-system kube-apiserver-hub-control-plane 1/1 Running 0 4m37s
kube-system kube-controller-manager-hub-control-plane 1/1 Running 0 4m24s
kube-system kube-proxy-2nvxw 1/1 Running 0 4m21s
kube-system kube-scheduler-hub-control-plane 1/1 Running 0 4m24s
local-path-storage local-path-provisioner-547f784dff-rc9xs 1/1 Running 0 4m21s
open-cluster-management cluster-manager-6bc5bd8856-t8gtb 0/1 Terminating 0 4m
root@yuchen clusteradm [modify-e2e-test] $ kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-558bd4d5db-cxv5h 1/1 Running 0 4m28s
kube-system coredns-558bd4d5db-hhrp7 1/1 Running 0 4m28s
kube-system etcd-hub-control-plane 1/1 Running 0 4m43s
kube-system kindnet-2sgd7 1/1 Running 0 4m28s
kube-system kube-apiserver-hub-control-plane 1/1 Running 0 4m44s
kube-system kube-controller-manager-hub-control-plane 1/1 Running 0 4m31s
kube-system kube-proxy-2nvxw 1/1 Running 0 4m28s
kube-system kube-scheduler-hub-control-plane 1/1 Running 0 4m31s
local-path-storage local-path-provisioner-547f784dff-rc9xs 1/1 Running 0 4m28s
root@yuchen clusteradm [modify-e2e-test] $ kubectl get deploy -A
NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE
kube-system coredns 2/2 2 2 4m50s
local-path-storage local-path-provisioner 1/1 1 1 4m48s
root@yuchen clusteradm [modify-e2e-test] $ kubectl get crd -A
No resources found
Thanks a lot!
from clusteradm.
@ycyaoxdu , Following our my local test based on above changes:
llhu@huleis-mbp clusteradm % bin/clusteradm init
Service account token successfully signed.
The multicluster hub control plane has been initialized successfully!
You can now register cluster(s) to the hub control plane. Log onto those cluster(s) and run the following command:
bin/clusteradm join --hub-token eyJhbGciOiJSUzI1NiIsImtpZCI6Il82VUF1Uk5BTTI1RjIzdDNKVVdGdl9BTEtMVzNSdFU3NG1PWjNOVnRqVzQifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJvcGVuLWNsdXN0ZXItbWFuYWdlbWVudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJjbHVzdGVyLWJvb3RzdHJhcC10b2tlbi13Y3prdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJjbHVzdGVyLWJvb3RzdHJhcCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjVjYTFlMGQxLTY3MWUtNDdjOS05MGQ5LTgwMWJkYjViN2YxMCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpvcGVuLWNsdXN0ZXItbWFuYWdlbWVudDpjbHVzdGVyLWJvb3RzdHJhcCJ9.nnqARnuz44k-1y_6ougU022TfmyusW9X6HSsvIa0QbLyNJHeOY8Ypp7lUyih8GAg22axk7AyMZZQKOqVGQFzJgJCw4ROnAU0SaiYN1DuBruNx-v8hNPxIS71QMe4PVTk7IskYbk0ARsiYIm8jqkxpJjNErKvGZn_O1rV7zepCOKWJSeW7RGqARsil7MQNpqDUrMObYSX1kbc9mIeWjp2eCpv8RWbmTf8LbOOuRFJP_2zaFU_XOkoSlNsf6_JkJINScP8_49YWXTHKw92RCNGDqfLLYR6w2KQjGC-u0aZQR0oH9ZCjHvGGQUpSaRTKtTKqeutENj3l5yj-xmoZ3Omwg --hub-apiserver https://127.0.0.1:52304 --cluster-name <cluster_name>
Replace <cluster_name> with a cluster name of your choice. For example, cluster1.
llhu@huleis-mbp clusteradm % kubectl get crd -A
NAME CREATED AT
addonplacementscores.cluster.open-cluster-management.io 2022-02-24T12:19:58Z
clustermanagementaddons.addon.open-cluster-management.io 2022-02-24T12:19:56Z
clustermanagers.operator.open-cluster-management.io 2022-02-24T12:19:53Z
managedclusteraddons.addon.open-cluster-management.io 2022-02-24T12:19:57Z
managedclusters.cluster.open-cluster-management.io 2022-02-24T12:19:56Z
managedclustersetbindings.cluster.open-cluster-management.io 2022-02-24T12:19:57Z
managedclustersets.cluster.open-cluster-management.io 2022-02-24T12:19:56Z
manifestworks.work.open-cluster-management.io 2022-02-24T12:19:56Z
placementdecisions.cluster.open-cluster-management.io 2022-02-24T12:19:58Z
placements.cluster.open-cluster-management.io 2022-02-24T12:19:57Z
llhu@huleis-mbp clusteradm % kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-558bd4d5db-dmt7m 1/1 Running 0 49m
kube-system coredns-558bd4d5db-v5wg6 1/1 Running 0 49m
kube-system etcd-llhu-2-control-plane 1/1 Running 0 49m
kube-system kindnet-nbdqx 1/1 Running 0 49m
kube-system kube-apiserver-llhu-2-control-plane 1/1 Running 0 49m
kube-system kube-controller-manager-llhu-2-control-plane 1/1 Running 1 49m
kube-system kube-proxy-cg954 1/1 Running 0 49m
kube-system kube-scheduler-llhu-2-control-plane 1/1 Running 1 49m
local-path-storage local-path-provisioner-547f784dff-96mrm 1/1 Running 1 49m
open-cluster-management-hub cluster-manager-placement-controller-66485c45fd-zx9vd 0/1 Running 0 10s
open-cluster-management-hub cluster-manager-registration-controller-5cf594c555-r9gkn 0/1 ContainerCreating 0 11s
open-cluster-management-hub cluster-manager-registration-webhook-5df7b5487f-622bs 0/1 ContainerCreating 0 11s
open-cluster-management-hub cluster-manager-work-webhook-5d4dfdc6f5-q46v7 0/1 Running 0 10s
open-cluster-management cluster-manager-6bc5bd8856-bjsh9 1/1 Running 0 20s
llhu@huleis-mbp clusteradm % kubectl get clustermanagers
NAME AGE
cluster-manager 31s
llhu@huleis-mbp clusteradm % bin/clusteradm clean
2022/02/24 20:20:36 Wait to delete cluster manager resource: cluster-manager.
2022/02/24 20:20:37 Wait to delete cluster manager resource: cluster-manager.
The multicluster hub control plane has been clean up successfully!
llhu@huleis-mbp clusteradm % kubectl get clustermanagers
Error from server (NotFound): Unable to list "operator.open-cluster-management.io/v1, Resource=clustermanagers": the server could not find the requested resource (get clustermanagers.operator.open-cluster-management.io)
llhu@huleis-mbp clusteradm % kubectl get crd -A
No resources found
from clusteradm.
@xauthulei this issue is fixed! thanks a lot!
from clusteradm.
Thanks @ycyaoxdu
from clusteradm.
Related Issues (20)
- no CSR to approve for cluster cluster1 HOT 2
- [Umbrella Issue] support start multicluster-controlplane HOT 3
- Failed to apply manifest: manifestworks.work.open-cluster-management.io "example-manifestwork" is forbidden: User "system:serviceaccount:open-cluster-management-agent:klusterlet-work-sa" HOT 2
- clusteradm join fails with "Error: unexpected watch event received" HOT 3
- no command to remove addon application-manager in hub cluster HOT 2
- clusteradm addon enable does not do any validation or warning about unknown addons HOT 3
- Misleading preflight error message HOT 3
- proxy subcommand doesn't work for the latest cluster-proxy HOT 3
- clusteradm get klusterlet-info fails even with managed cluster context HOT 4
- support install template type addon with clusteradm HOT 3
- clusteradm join for hosted mode does not work HOT 3
- bug report: create more than 1 klusterlet for same managed cluster HOT 1
- clusteradm init failed HOT 3
- join and accept allow duplicate cluster-name HOT 4
- clusteradm init does not respect the --kubeconfig flag HOT 1
- Support proxy settings between hub and managed cluster HOT 2
- clusteradm proxy kubectl does not allow multiple clusters HOT 1
- clusteradm proxy kubectl does not work HOT 1
- Support join cluster with auto-approve HOT 4
- Re-init doesn't work well HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clusteradm.