Skip to content

Commit 0cfd3df

Browse files
HiranmoyChowdhurytamalsaha
authored andcommitted
Signed-off-by: HiranmoyChowdhury <[email protected]>
1 parent dee9874 commit 0cfd3df

File tree

1 file changed

+9
-6
lines changed
  • content/post/redis-hostname-integration

1 file changed

+9
-6
lines changed

content/post/redis-hostname-integration/index.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tags:
2727

2828
> New to KubeDB? Please start [here](/docs/README.md).
2929
30-
# Redis External Connections Outside Kubernetes using Redis Announce
30+
# Connecting to Redis from Outside Kubernetes using Redis Announce
3131

3232
Redis Announce is a feature in Redis that enables external connections to Redis replica sets deployed within Kubernetes. It allows applications or clients outside the Kubernetes cluster to connect to individual replica set members by mapping internal Kubernetes DNS names to externally accessible hostnames or IP addresses. This is useful for scenarios where external access is needed, such as hybrid deployments or connecting from outside the cluster.
3333

@@ -47,7 +47,7 @@ namespace/demo created
4747
4848
## Prerequisites
4949

50-
We need to have the following prerequisites to run this tutorial:
50+
Ensure the following components are installed before proceeding:
5151

5252
### Install Voyager Gateway
5353

@@ -61,9 +61,9 @@ helm install ace oci://ghcr.io/appscode-charts/voyager-gateway \
6161
```
6262

6363
### Create EnvoyProxy and GatewayClass
64-
We need to setup `EnvoyProxy` and `GatewayClass` to use voyager gateway.
6564

66-
Create `EnvoyProxy` using the following command:
65+
Deploy `EnvoyProxy` with the following configuration:
66+
6767
```yaml
6868
apiVersion: gateway.envoyproxy.io/v1alpha1
6969
kind: EnvoyProxy
@@ -116,12 +116,14 @@ spec:
116116
117117
> If you want to use `NodePort` service. Update `.spec.provider.kubernetes.envoyService.type` to `NodePort` in the above YAML.
118118

119+
Apply the configuration:
120+
119121
```bash
120122
$ kubectl apply -f https://github.com/kubedb/docs/raw/{{< param "info.version" >}}/docs/examples/redis/announce/envoyproxy.yaml
121123
envoyproxy.gateway.envoyproxy.io/ace created
122124
```
123125

124-
Create `GatewayClass` using the following command:
126+
Deploy the `GatewayClass`:
125127
```yaml
126128
apiVersion: gateway.networking.k8s.io/v1
127129
kind: GatewayClass
@@ -148,6 +150,7 @@ spec:
148150
name: ace
149151
namespace: ace-gw
150152
```
153+
Apply it:
151154

152155
```bash
153156
$ kubectl apply -f https://github.com/kubedb/docs/raw/{{< param "info.version" >}}/docs/examples/redis/announce/gatewayclass.yaml
@@ -213,7 +216,7 @@ Read about the fields in details in [redis concept](/docs/guides/redis/concepts/
213216
## Redis Cluster with Announce
214217

215218
### Create DNS Records
216-
Create dns `A`/`CNAME` records for redis cluster pods, let's say, `Redis` has `2` replicas and `3` shards.
219+
You need to create `A` or `CNAME` records for each `Redis` pod that will be externally accessible. For example, with `3` shards and `2` replicas per shard, the DNS entries would be:
217220

218221
Example:
219222
- `A/CNAME Record` for each Redis replicas with exposed Envoy Gateway `LoadBalancer/NodePort` IP/Host:

0 commit comments

Comments
 (0)