Difference between revisions of "Helm install myredis bitnami/redis"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
<pre>
+
* https://bitnami.com/stack/redis/helm
NAME: myredis
 
LAST DEPLOYED: Wed Mar  8 14:32:55 2023
 
NAMESPACE: default
 
STATUS: deployed
 
REVISION: 1
 
TEST SUITE: None
 
NOTES:
 
CHART NAME: redis
 
CHART VERSION: 17.8.2
 
APP VERSION: 7.0.9
 
  
** Please be patient while the chart is being deployed **
+
* <code>helm install redis bitnami/redis  --set "[[auth.enabled]]=false"</code>
 +
* <code>[[helm install myredis]] bitnami/redis</code>
  
Redis&reg; can be accessed on the following DNS names from within your cluster:
 
 
    myredis-master.default.svc.cluster.local for read/write operations (port 6379)
 
    myredis-replicas.default.svc.cluster.local for read-only operations (port 6379)
 
  
 +
== Examples ==
 +
[[helm install myredis]] bitnami/redis
 +
NAME: myredis
 +
LAST DEPLOYED: Wed Mar  8 14:32:55 2023
 +
NAMESPACE: default
 +
STATUS: deployed
 +
REVISION: 1
 +
TEST SUITE: None
 +
NOTES:
 +
CHART NAME: redis
 +
CHART VERSION: 17.8.2
 +
APP VERSION: 7.0.9
 +
 +
** Please be patient while the chart is being deployed **
 +
 +
Redis&reg; can be accessed on the following DNS names from within your cluster:
 +
 +
    [[myredis-master]].default.[[svc.cluster.local]] for read/write operations (port 6379)
 +
    myredis-replicas.default.svc.cluster.local for read-only operations (port 6379)
 +
<pre>
  
  
Line 46: Line 53:
 
</pre>
 
</pre>
  
 +
== Related ==
 +
* [[Bitnami]]
  
 
== See also ==
 
== See also ==
 +
* {{redis-cli}}
 
* {{Redis}}
 
* {{Redis}}
  
 
[[Category:Redis]]
 
[[Category:Redis]]

Latest revision as of 06:41, 30 March 2023


Examples[edit]

helm install myredis bitnami/redis
NAME: myredis
LAST DEPLOYED: Wed Mar  8 14:32:55 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: redis
CHART VERSION: 17.8.2
APP VERSION: 7.0.9

** Please be patient while the chart is being deployed **

Redis® can be accessed on the following DNS names from within your cluster:

    myredis-master.default.svc.cluster.local for read/write operations (port 6379)
    myredis-replicas.default.svc.cluster.local for read-only operations (port 6379)
 


To get your password run:

    export REDIS_PASSWORD=$(kubectl get secret --namespace default myredis -o jsonpath="{.data.redis-password}" | base64 -d)

To connect to your Redis® server:

1. Run a Redis® pod that you can use as a client:

   kubectl run --namespace default redis-client --restart='Never'  --env REDIS_PASSWORD=$REDIS_PASSWORD  --image docker.io/bitnami/redis:7.0.9-debian-11-r1 --command -- sleep infinity

   Use the following command to attach to the pod:

   kubectl exec --tty -i redis-client \
   --namespace default -- bash

2. Connect using the Redis® CLI:
   REDISCLI_AUTH="$REDIS_PASSWORD" redis-cli -h myredis-master
   REDISCLI_AUTH="$REDIS_PASSWORD" redis-cli -h myredis-replicas

To connect to your database from outside the cluster execute the following commands:

    kubectl port-forward --namespace default svc/myredis-master 6379:6379 &
    REDISCLI_AUTH="$REDIS_PASSWORD" redis-cli -h 127.0.0.1 -p 6379

Related[edit]

See also[edit]

Advertising: