Multi-namespace examples
YAML examples for deploying Redis Enterprise across multiple Kubernetes namespaces.
Redis Enterprise for Kubernetes |
---|
Multi-namespace deployment lets a single Redis Enterprise operator manage clusters and databases in different namespaces, providing better resource isolation and organization.
Multi-namespace deployment enables:
- Namespace isolation: Separate Redis Enterprise resources by team, environment, or application
- Centralized management: Single operator manages multiple namespaces
- Resource sharing: Efficient use of cluster resources across namespaces
- Flexible RBAC: Fine-grained permissions per namespace
This example shows:
- Operator namespace:
redis-enterprise-operator
(where the operator and REC run) - Consumer namespaces:
app-production
,app-staging
(where REDB resources are created)
For complete deployment instructions, see Manage databases in multiple namespaces.
Operator service account
Deploy these resources in the namespace where the Redis Enterprise operator runs.
Operator cluster role
Grant the operator cluster-wide permissions to manage resources across namespaces.
Operator cluster role binding
Consumer role
Consumer role binding
Consumer namespace configuration:
subjects.name
: Must match the operator service account namesubjects.namespace
: Must be the operator namespace, not the consumer namespaceroleRef.name
: Must match the consumer role name
Next steps
- Configure networking across namespaces
- Set up monitoring for multi-namespace deployment
- Learn about resource management