From 540dd5dd1f478a81de2c3734d95a4999b4a31d5f Mon Sep 17 00:00:00 2001 From: Kaitlyn Michael Date: Wed, 29 Jan 2025 15:18:49 -0600 Subject: [PATCH 1/2] DOC-4696 fix --- content/operate/kubernetes/re-databases/replica-redb.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/operate/kubernetes/re-databases/replica-redb.md b/content/operate/kubernetes/re-databases/replica-redb.md index 8d1c4171e..25b7cfa74 100644 --- a/content/operate/kubernetes/re-databases/replica-redb.md +++ b/content/operate/kubernetes/re-databases/replica-redb.md @@ -80,7 +80,7 @@ You will need `kubectl`, `curl`, and `jq` installed for this procedure. ```js JQ='.[] | select(.name=="' JQ+="${SOURCE_DB}" - JQ+='") | ("redis://admin:" + .authentication_admin_pass + "@"+.endpoints[0].dns_name+":"+(.endpoints[0].port|tostring))' + JQ+='") | ("redis://admin:" + .authentication_admin_pass + "@"+.name+":"+(.endpoints[0].port|tostring))' URI=`curl -sf -k -u "$CLUSTER_USER:$CLUSTER_PASSWORD" "https://localhost:9443/v1/bdbs?fields=uid,name,endpoints,authentication_admin_pass" | jq "$JQ" | sed 's/"//g'` ``` From a595126188760ae8a49f5ce24f33e0e95181a793 Mon Sep 17 00:00:00 2001 From: Kaitlyn Michael Date: Mon, 3 Feb 2025 16:31:23 -0600 Subject: [PATCH 2/2] updated API spec info in intro --- .../operate/kubernetes/re-databases/replica-redb.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/operate/kubernetes/re-databases/replica-redb.md b/content/operate/kubernetes/re-databases/replica-redb.md index 25b7cfa74..fe2f0ece4 100644 --- a/content/operate/kubernetes/re-databases/replica-redb.md +++ b/content/operate/kubernetes/re-databases/replica-redb.md @@ -11,11 +11,11 @@ weight: 42 --- You can configure a replica of a database by creating an item in -the `replicaSources` section of the [Redis Enterprise database specification](https://github.com/RedisLabs/redis-enterprise-k8s-docs/blob/master/redis_enterprise_database_api.md#redisenterprisedatabasespec). The value of -`replicaSourceType` must be 'SECRET'; `replicaSourceName` -must be the name of a secret that contains the replica source url. +the [`replicaSources`](/operate/kubernetes/reference/redis_enterprise_database_api#specreplicasources) section of the RedisEnterpriseDatabase (REDB) custom resource. -A secret must be created using a `stringData` section containing the replica source URI as follows: +A secret must be created with the `stringData` section containing the replica source URI as follows: + +Create a secret with the replica source URI listed in the `stringData` field as follows: ```yaml apiVersion: v1 @@ -23,7 +23,7 @@ kind: Secret metadata: name: my-replica-source stringData: - uri: replica-source-uri-goes-here + uri: ``` The replica source URL can be retrieved by going to "UI > database > configuration > Press the button Get Replica of source URL"