Skip to content

Commit c9f0f29

Browse files
use AA yaml embeds
1 parent 134e985 commit c9f0f29

File tree

6 files changed

+56
-41
lines changed

6 files changed

+56
-41
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
```yaml
2+
apiVersion: app.redislabs.com/v1alpha1
3+
kind: RedisEnterpriseActiveActiveDatabase
4+
metadata:
5+
name: reaadb-boeing
6+
spec:
7+
globalConfigurations:
8+
databaseSecretName: <my-secret>
9+
memorySize: 200MB
10+
shardCount: 3
11+
participatingClusters:
12+
- name: rerc-ohare
13+
- name: rerc-raegan
14+
```

content/embeds/k8s/rerc-ohare.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
```yaml
2+
apiVersion: app.redislabs.com/v1alpha1
3+
kind: RedisEnterpriseRemoteCluster
4+
metadata:
5+
name: rerc-ohare
6+
spec:
7+
recName: rec-chicago
8+
recNamespace: ns-illinois
9+
apiFqdnUrl: api-rec-chicago-ns-illinois.example.com
10+
dbFqdnSuffix: -db-rec-chicago-ns-illinois.example.com
11+
secretName: redis-enterprise-rerc-ohare
12+
```

content/embeds/k8s/rerc-raegan.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
```yaml
2+
apiVersion: app.redislabs.com/v1alpha1
3+
kind: RedisEnterpriseRemoteCluster
4+
metadata:
5+
name: rerc-raegan
6+
spec:
7+
recName: rec-arlington
8+
recNamespace: ns-virginia
9+
apiFqdnUrl: test-example-api-rec-arlington-ns-virginia.example.com
10+
dbFqdnSuffix: -example-cluster-rec-arlington-ns-virginia.example.com
11+
secretName: redis-enterprise-rerc-raegan
12+
```

content/operate/kubernetes/active-active/create-reaadb.md

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -41,33 +41,11 @@ For a list of example values used throughout this article, see the [Example valu
4141

4242
Example RERC (`rerc-ohare`) for the REC named `rec-chicago` in the namespace `ns-illinois`:
4343

44-
```yaml
45-
apiVersion: app.redislabs.com/v1alpha1
46-
kind: RedisEnterpriseRemoteCluster
47-
metadata:
48-
name: rerc-ohare
49-
spec:
50-
recName: rec-chicago
51-
recNamespace: ns-illinois
52-
apiFqdnUrl: api-rec-chicago-ns-illinois.example.com
53-
dbFqdnSuffix: -db-rec-chicago-ns-illinois.example.com
54-
secretName: redis-enterprise-rerc-ohare
55-
```
44+
{{<embed-yaml "k8s/rerc-ohare.md" "rerc-ohare.yaml">}}
5645

5746
Example RERC (`rerc-raegan`) for the REC named `rec-arlington` in the namespace `ns-virginia`:
5847

59-
```yaml
60-
apiVersion: app.redislabs.com/v1alpha1
61-
kind: RedisEnterpriseRemoteCluster
62-
metadata:
63-
name: rerc-reagan
64-
spec:
65-
recName: rec-arlington
66-
recNamespace: ns-virginia
67-
apiFqdnUrl: test-example-api-rec-arlington-ns-virginia.example.com
68-
dbFqdnSuffix: -example-cluster-rec-arlington-ns-virginia.example.com
69-
secretName: redis-enterprise-rerc-reagan
70-
```
48+
{{<embed-yaml "k8s/rerc-raegan.md" "rerc-raegan.yaml">}}
7149

7250
For more details on RERC fields, see the [RERC API reference]({{<relref "/operate/kubernetes/reference/api/redis_enterprise_remote_cluster_api">}}).
7351

@@ -106,20 +84,7 @@ For a list of example values used throughout this article, see the [Example valu
10684

10785
Example REAADB named `reaadb-boeing` linked to the REC named `rec-chicago` with two participating clusters and a global database configuration with shard count set to 3:
10886

109-
```yaml
110-
apiVersion: app.redislabs.com/v1alpha1
111-
kind: RedisEnterpriseActiveActiveDatabase
112-
metadata:
113-
name: reaadb-boeing
114-
spec:
115-
globalConfigurations:
116-
databaseSecretName: <my-secret>
117-
memorySize: 200MB
118-
shardCount: 3
119-
participatingClusters:
120-
- name: rerc-ohare
121-
- name: rerc-reagan
122-
```
87+
{{<embed-yaml "k8s/reaadb-boeing.md" "reaadb-boeing.yaml">}}
12388

12489
{{<note>}}Sharding is disabled on Active-Active databases created with a `shardCount` of 1. Sharding cannot be enabled after database creation. {{</note>}}
12590

content/operate/kubernetes/active-active/edit-clusters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ To communicate with other clusters, all participating clusters need access to th
7575

7676
1. From one of the existing participating clusters, create a `RedisEnterpriseRemoteCluster` (RERC) custom resource for the new participating cluster.
7777

78-
This example shows an RERC custom resource for an REC named `rec-boston` in the namespace `ns-massachusetts`.
78+
This example (rerc-logan) shows an RERC custom resource for an REC named `rec-boston` in the namespace `ns-massachusetts`.
7979

8080
```yaml
8181
apiVersion: app.redislabs.com/v1alpha1

content/operate/kubernetes/reference/yaml/active-active.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ This example shows a two-cluster Active-Active setup:
2222

2323
For complete deployment instructions, see [Active-Active databases]({{< relref "/operate/kubernetes/active-active" >}}).
2424

25-
## RERC for Chicago cluster
25+
## RERC examples
2626

2727
Create a RedisEnterpriseRemoteCluster (RERC) resource on each participating cluster that points to the other clusters.
2828

29+
Plain example:
30+
2931
{{<embed-yaml "k8s/rerc.md" "redis-enterprise-remote-cluster.yaml">}}
3032

33+
Customized example (matches Kubernetes Active-Active guide examples):
34+
35+
{{<embed-yaml "k8s/rerc_custom.md" "redis-enterprise-remote-cluster-custom.yaml">}}
36+
3137
RERC configuration:
3238
- `metadata.name`: Unique name for this remote cluster reference
3339
- `spec.recName`: Name of the remote REC
@@ -38,12 +44,18 @@ RERC configuration:
3844

3945
Edit the values in the downloaded YAML file for your specific setup, updating the remote cluster details, API endpoints, and secret names to match your actual environment.
4046

41-
## Active-Active database
47+
## Active-Active database examples
4248

4349
The RedisEnterpriseActiveActiveDatabase (REAADB) resource defines the Active-Active database.
4450

51+
Plain example:
52+
4553
{{<embed-yaml "k8s/reaadb.md" "redis-enterprise-active-active-database.yaml">}}
4654

55+
Customized example (matches Kubernetes Active-Active guide examples):
56+
57+
{{<embed-yaml "k8s/reaadb_custom.md" "redis-enterprise-active-active-database-custom.yaml">}}
58+
4759
REAADB configuration:
4860
- `metadata.name`: Active-Active database name
4961
- `spec.participatingClusters`: List of RERC names that participate in this database

0 commit comments

Comments
 (0)