Comments (4)
If there're multiple child clusters, how can I tell which clsrr/mcls belongs to which child cluster?
$ kubectl get clsrr
NAME CLUSTER ID STATUS AGE
clusternet-dc91021d-2361-4f6d-a404-7c33b9e01118 dc91021d-2361-4f6d-a404-7c33b9e01118 Approved 3d6h
$ kubectl get mcls -A -o wide
NAMESPACE NAME CLUSTER ID CLUSTER TYPE SYNC MODE KUBERNETES READYZ AGE
clusternet-dhxfs clusternet-cluster-dzqkw dc91021d-2361-4f6d-a404-7c33b9e01118 EdgeClusterSelfProvisioned Dual v1.19.10 true 7d23h
The auto-generated unique clusterID is a inline field for ClusterRegistrationRequest.Spec
and ManagedCluster.Spec
. Moreover, label clusters.clusternet.io/cluster-id=<a-cluster-uid>
is appended for every ClusterRegistrationRequest
and ManagedCluster
object. With this label, you can also use label selector to filter target objects.
Is there anyway I can specify this clusterID in clusternet-agent manifest?
Currently, no and won't. The reason why we don't provider clusterID customization is that this clusterID is critically important for Clusternet, where we must make sure it is unique.
But you can specify clusterName in clusternet-agent
command line.
from clusternet.
So the short answer is, I should specify cluster-reg-name
in the clusternet-agent manifest and match that name with clsrr.Spec.ClusterName to find out the corresponding clusterID?
from clusternet.
@fengye87 A short answer is,
$ kubectl get clsrr -l clusters.clusternet.io/cluster-name=YOUR-CLUSTER-NAME
$ kubectl get mcls -A -l clusters.clusternet.io/cluster-name=YOUR-CLUSTER-NAME
If you get your clusterID, you can also query like this,
$ kubectl get clsrr -l clusters.clusternet.io/cluster-id=YOUR-CLUSTER-ID
$ kubectl get mcls -A -l clusters.clusternet.io/cluster-id=YOUR-CLUSTER-ID
from clusternet.
@dixudx Got it, thanks! I'm closing this issue.
from clusternet.
Related Issues (20)
- Add post-join actions after child cluster joins in parent cluster successfully. HOT 2
- controller-manager will panic when the length of bindingClusters and replicas in subscription are not equal
- helm deploy failed HOT 4
- Replace ApplyResourceWithRetry with ApplyResource HOT 2
- Optimized performance of clusternet in large-scale CR scenarios.
- add metrics and pprof server for controller-manager
- Support Scheduling Priority and Preemption HOT 4
- for dividing scheduling, manifest changes should not directly trigger the updates of base objects HOT 1
- does clusternet support Multi-Cluster Controller HOT 5
- The default priority of localization for dynamic scheduling is 1000(the highest), which is not flexible HOT 2
- when we watch wrapper resource, sometimes we can not receive event
- shadow api can not access pv which dynamicly created by pvc HOT 9
- Installation issues: How to add other sub-clusters to the parent cluster HOT 6
- Add a None value to ClusterSyncMode HOT 10
- Missing the example to set a valid chartPullSecret HOT 1
- Sub cluster initiated multiple controllers for processing the same resource
- Report the use of components with vulnerabilities in clusternet HOT 1
- Clusternet Helm Chart: Unnecessary RBAC permissions
- Add the AgentVersion field in ManagedClusterStatus HOT 2
- Failed to create cluster HOT 2
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 clusternet.