Skip to content

Redis referenceΒΆ

Configuration optionsΒΆ

The spec.redis field takes a list of records of two fields, instance and access. Instance is the instance name and access is the access mode.

spec:
  redis:
    - instance: <RedisInstanceName>
      access: readwrite | read | write | admin

Environment variablesΒΆ

Every <RedisInstanceName> will give three environment variables for the applications to use:

Key Value
REDIS_URI_<RedisInstanceName> The URI for the Redis instance, typically with a redis scheme.
Example: rediss://redis-team-sessions-nav-dev.aivencloud.com:26483
REDIS_HOST_<RedisInstanceName> The host for the Redis instance.
Example: redis-team-sessions-nav-dev.aivencloud.com
REDIS_PORT_<RedisInstanceName> The port for the Redis instance.
Example: 26483
REDIS_USERNAME_<RedisInstanceName> The username to use when connecting.
REDIS_PASSWORD_<RedisInstanceName> The password to use when connecting.

Advanced configurationΒΆ

For advanced configuration, we recommend creating your Redis instances explicitly, especially if you intend for multiple applications using the same Redis instance.

We use Aivens operator, so the Redis resource is documented in detail in the Aiven documentation.