23 lines
762 B
Markdown
23 lines
762 B
Markdown
# Create Cluster Groups
|
|
|
|
Clusters in a namespace can be put into a cluster group. A cluster group is essentially a named selector.
|
|
The only parameter for a cluster group is essentially the selector.
|
|
When you get to a certain scale cluster groups become a more reasonable way to manage your clusters.
|
|
Cluster groups serve the purpose of giving aggregated
|
|
status of the deployments and then also a simpler way to manage targets.
|
|
|
|
A cluster group is created by creating a `ClusterGroup` resource like below
|
|
|
|
```yaml
|
|
kind: ClusterGroup
|
|
apiVersion: fleet.cattle.io/v1alpha1
|
|
metadata:
|
|
name: production-group
|
|
namespace: clusters
|
|
spec:
|
|
# This is the standard metav1.LabelSelector format to match clusters by labels
|
|
selector:
|
|
matchLabels:
|
|
env: prod
|
|
```
|