Skip to content

Commit 41f340c

Browse files
K8s: DOC-4696 fix (#1110)
* DOC-4696 fix * updated API spec info in intro
1 parent 4fad130 commit 41f340c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/operate/kubernetes/re-databases/replica-redb.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ weight: 42
1111
---
1212

1313
You can configure a replica of a database by creating an item in
14-
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
15-
`replicaSourceType` must be 'SECRET'; `replicaSourceName`
16-
must be the name of a secret that contains the replica source url.
14+
the [`replicaSources`](/operate/kubernetes/reference/redis_enterprise_database_api#specreplicasources) section of the RedisEnterpriseDatabase (REDB) custom resource.
1715

18-
A secret must be created using a `stringData` section containing the replica source URI as follows:
16+
A secret must be created with the `stringData` section containing the replica source URI as follows:
17+
18+
Create a secret with the replica source URI listed in the `stringData` field as follows:
1919

2020
```yaml
2121
apiVersion: v1
2222
kind: Secret
2323
metadata:
2424
name: my-replica-source
2525
stringData:
26-
uri: replica-source-uri-goes-here
26+
uri: <replica-source-uri-goes-here>
2727
```
2828
2929
The replica source URL can be retrieved by going to "UI > database > configuration > Press the button Get Replica of source URL"
@@ -80,7 +80,7 @@ You will need `kubectl`, `curl`, and `jq` installed for this procedure.
8080
```js
8181
JQ='.[] | select(.name=="'
8282
JQ+="${SOURCE_DB}"
83-
JQ+='") | ("redis://admin:" + .authentication_admin_pass + "@"+.endpoints[0].dns_name+":"+(.endpoints[0].port|tostring))'
83+
JQ+='") | ("redis://admin:" + .authentication_admin_pass + "@"+.name+":"+(.endpoints[0].port|tostring))'
8484
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'`
8585
```
8686

0 commit comments

Comments
 (0)