initial commit
This commit is contained in:
54
dev/redis/README.md
Normal file
54
dev/redis/README.md
Normal file
@@ -0,0 +1,54 @@
|
||||
#installatie:
|
||||
|
||||
helm install redis bitnami/redis -n redis -f values.yaml
|
||||
|
||||
#resultaat:
|
||||
|
||||
NAME: redis
|
||||
LAST DEPLOYED: Wed Apr 3 10:11:09 2024
|
||||
NAMESPACE: redis
|
||||
STATUS: deployed
|
||||
REVISION: 1
|
||||
TEST SUITE: None
|
||||
NOTES:
|
||||
CHART NAME: redis
|
||||
CHART VERSION: 19.0.1
|
||||
APP VERSION: 7.2.4
|
||||
|
||||
** Please be patient while the chart is being deployed **
|
||||
|
||||
Redis® can be accessed on the following DNS names from within your cluster:
|
||||
|
||||
redis-master.redis.svc.cluster.local for read/write operations (port 6379)
|
||||
redis-replicas.redis.svc.cluster.local for read-only operations (port 6379)
|
||||
|
||||
|
||||
|
||||
To get your password run:
|
||||
|
||||
export REDIS_PASSWORD=$(kubectl get secret --namespace redis redis -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 redis redis-client --restart='Never' --env REDIS_PASSWORD=$REDIS_PASSWORD --image docker.io/bitnami/redis:7.2.4-debian-12-r9 --command -- sleep infinity
|
||||
|
||||
Use the following command to attach to the pod:
|
||||
|
||||
kubectl exec --tty -i redis-client \
|
||||
--namespace redis -- bash
|
||||
|
||||
2. Connect using the Redis® CLI:
|
||||
REDISCLI_AUTH="$REDIS_PASSWORD" redis-cli -h redis-master
|
||||
REDISCLI_AUTH="$REDIS_PASSWORD" redis-cli -h redis-replicas
|
||||
|
||||
To connect to your database from outside the cluster execute the following commands:
|
||||
|
||||
kubectl port-forward --namespace redis svc/redis-master 6379:6379 &
|
||||
REDISCLI_AUTH="$REDIS_PASSWORD" redis-cli -h 127.0.0.1 -p 6379
|
||||
|
||||
WARNING: There are "resources" sections in the chart not set. Using "resourcesPreset" is not recommended for production. For production installations, please set the following values according to your workload needs:
|
||||
- master.resources
|
||||
- replica.resources
|
||||
+info https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
|
||||
Reference in New Issue
Block a user