Redis

  • By Colin Misare
Channel Version Revision Published Runs on
latest/stable 7 7 12 May 2021
Ubuntu 20.04
latest/edge 13 13 20 May 2021
Ubuntu 20.04
juju deploy redis-k8s
Show information

Platform:

Redis Operator

A Juju charm deploying and managing Redis on Kubernetes.

Overview

The Redis operator provides in-memory data structure store, used as a database, cache, and message broker. This repository contains a Juju Charm for deploying Redis on Kubernetes clusters.

This charm is in development, and it supports a simple Redis topology. Although multiple units are allowed, replication and clustering are not supported for the moment. You can track the development in this and this issues, respectively.

Usage

To deploy this charm using Juju 2.9.0 or later, run:

juju deploy redis-k8s

Once Redis starts up it will be running on its default port, 6379. To check it you run:

juju status

To discover the IP Redis is running behind. The output will have lines like:

Unit           Workload    Agent  Address       Ports     Message
redis-k8s/20   active      idle   10.1.168.69   6379/TCP  Pod is ready.

Then, from your local machine, you can:

redis-cli -h 10.1.168.69 -p 6379