Skip to content

Commit 352c1ff

Browse files
authored
Update the ClusterProperty id.k8s.io to cluster.clusterset.k8s.io (#221)
1 parent 7b41740 commit 352c1ff

17 files changed

+35
-70
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ make install
101101
# customresourcedefinition.apiextensions.k8s.io/serviceimports.multicluster.x-k8s.io created
102102
```
103103

104-
Register a unique `id.k8s.io` and `clusterset.k8s.io` in your cluster:
104+
Register a unique `cluster.clusterset.k8s.io` and `clusterset.k8s.io` in your cluster:
105105
```bash
106106
kubectl apply -f samples/example-clusterproperty.yaml
107-
# clusterproperty.about.k8s.io/id.k8s.io created
107+
# clusterproperty.about.k8s.io/cluster.clusterset.k8s.io created
108108
# clusterproperty.about.k8s.io/clusterset.k8s.io created
109109
```
110-
> **Note:** If you are creating multiple clusters, ensure you create unique `id.k8s.io` identifiers for each cluster.
110+
> **Note:** If you are creating multiple clusters, ensure you create unique `cluster.clusterset.k8s.io` identifiers for each cluster.
111111
112112

113113
To run the controller, run the following command. The controller runs in an infinite loop so open another terminal to create CRDs. (Ctrl+C to exit)

README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@
1313
[![Go Report Card](https://goreportcard.com/badge/github.com/aws/aws-cloud-map-mcs-controller-for-k8s)](https://goreportcard.com/report/github.com/aws/aws-cloud-map-mcs-controller-for-k8s)
1414

1515
## Introduction
16-
The AWS Cloud Map Multi-cluster Service Discovery Controller for Kubernetes (K8s) implements the Kubernetes [multi-cluster services API](https://github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/1645-multi-cluster-services-api) specification, which allows services to communicate across multiple clusters. The implementation relies on [AWS Cloud Map](https://aws.amazon.com/cloud-map/) for enabling cross-cluster service discovery.
17-
18-
See the demo from AWS Container Day x KubeCon!
19-
20-
[![Watch the video](https://img.youtube.com/vi/3f0Tv7IiQQw/0.jpg)](https://youtu.be/3f0Tv7IiQQw?t=24458)
16+
The AWS Cloud Map Multi-cluster Service Discovery Controller for Kubernetes (K8s) implements the Kubernetes [KEP-1645: Multi-Cluster Services API](https://github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/1645-multi-cluster-services-api) and [KEP-2149: ClusterId for ClusterSet identification](https://github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/2149-clusterid), which allows services to communicate across multiple clusters. The implementation relies on [AWS Cloud Map](https://aws.amazon.com/cloud-map/) for enabling cross-cluster service discovery.
2117

2218
## Installation
2319

@@ -37,7 +33,7 @@ Perform the following installation steps on each participating cluster.
3733

3834
#### Configure CoreDNS
3935

40-
Install the The CoreDNS multicluster plugin into each participating cluster. The multicluster plugin enables CoreDNS to lifecycle manage DNS records for `ServiceImport` objects.
36+
Install the CoreDNS multicluster plugin into each participating cluster. The multicluster plugin enables CoreDNS to lifecycle manage DNS records for `ServiceImport` objects.
4137

4238
To install the plugin, run the following commands.
4339

@@ -63,34 +59,34 @@ The controller must have sufficient IAM permissions to perform required Cloud Ma
6359

6460
## Usage
6561

66-
### Configure `id.k8s.io` and `clusterset.k8s.io`
62+
### Configure `cluster.clusterset.k8s.io` and `clusterset.k8s.io`
6763

68-
`id.k8s.io` is a unique identifier that uniquely identifies a cluster.
64+
`cluster.clusterset.k8s.io` is a unique identifier for the cluster.
6965

70-
`clusterset.k8s.io` is a unique identifier that uniquely identifies the set of clusters in your multicluster. This will be the same across all clusters in the set.
66+
`clusterset.k8s.io` is an identifier that relates to the `ClusterSet` in which the cluster belongs.
7167

7268
```yaml
7369
apiVersion: about.k8s.io/v1alpha1
7470
kind: ClusterProperty
7571
metadata:
76-
name: id.k8s.io
72+
name: cluster.clusterset.k8s.io
7773
spec:
78-
value: [Your cluster identifier]
74+
value: [Your Cluster identifier]
7975
---
8076
apiVersion: about.k8s.io/v1alpha1
8177
kind: ClusterProperty
8278
metadata:
8379
name: clusterset.k8s.io
8480
spec:
85-
value: [Your cluster set identifier]
81+
value: [Your ClusterSet identifier]
8682
```
8783
8884
**Example:**
8985
```yaml
9086
apiVersion: about.k8s.io/v1alpha1
9187
kind: ClusterProperty
9288
metadata:
93-
name: id.k8s.io
89+
name: cluster.clusterset.k8s.io
9490
spec:
9591
value: my-first-cluster
9692
---
@@ -178,4 +174,4 @@ Join the channel with this [invite](https://join.slack.com/t/awsappmesh/shared_i
178174

179175
This project is distributed under the
180176
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
181-
see [LICENSE](https://github.com/aws/aws-cloud-map-mcs-controller-for-k8s/blob/main/LICENSE) and [NOTICE](https://github.com/aws/aws-cloud-map-mcs-controller-for-k8s/blob/main/NOTICE) for more information.
177+
see [LICENSE](https://github.com/aws/aws-cloud-map-mcs-controller-for-k8s/blob/main/LICENSE) and [NOTICE](https://github.com/aws/aws-cloud-map-mcs-controller-for-k8s/blob/main/NOTICE) for more information.

config/samples/about_v1alpha1_clusterproperty_clusterId.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

config/samples/about_v1alpha1_clusterproperty_clustersetId.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

config/samples/multicluster_v1alpha1_serviceexport.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

config/samples/multicluster_v1alpha1_serviceimport.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: about.k8s.io/v1alpha1
22
kind: ClusterProperty
33
metadata:
4-
name: id.k8s.io
4+
name: cluster.clusterset.k8s.io
55
spec:
66
value: eks-e2e-clusterid-1
77
---
@@ -10,4 +10,4 @@ kind: ClusterProperty
1010
metadata:
1111
name: clusterset.k8s.io
1212
spec:
13-
value: eks-e2e-clustersetid-1
13+
value: eks-e2e-clustersetid-1
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: about.k8s.io/v1alpha1
22
kind: ClusterProperty
33
metadata:
4-
name: id.k8s.io
4+
name: cluster.clusterset.k8s.io
55
spec:
66
value: eks-e2e-clusterid-2
77
---
@@ -10,4 +10,4 @@ kind: ClusterProperty
1010
metadata:
1111
name: clusterset.k8s.io
1212
spec:
13-
value: eks-e2e-clustersetid-1
13+
value: eks-e2e-clustersetid-1

integration/kind-test/configs/dnsutils-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
- command:
99
- sleep
1010
- "3600"
11-
image: registry.k8s.io/e2e-test-images/jessie-dnsutils:1.3
11+
image: gcr.io/kubernetes-e2e-test-images/dnsutils:1.3
1212
name: dnsutils
1313
imagePullPolicy: IfNotPresent
1414
restartPolicy: Always
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: about.k8s.io/v1alpha1
22
kind: ClusterProperty
33
metadata:
4-
name: id.k8s.io
4+
name: cluster.clusterset.k8s.io
55
spec:
66
value: kind-e2e-clusterid-1
77
---
@@ -10,4 +10,4 @@ kind: ClusterProperty
1010
metadata:
1111
name: clusterset.k8s.io
1212
spec:
13-
value: kind-e2e-clustersetid-1
13+
value: kind-e2e-clustersetid-1

0 commit comments

Comments
 (0)