{
  "id": "multi-namespace",
  "title": "Multi-namespace examples",
  "url": "https://redis.io/docs/latest/operate/kubernetes/8.0/reference/yaml/multi-namespace/",
  "summary": "YAML examples for deploying Redis Enterprise across multiple Kubernetes namespaces.",
  "content": "\nMulti-namespace deployment lets a single Redis Enterprise operator manage clusters and databases in different namespaces, providing better resource isolation and organization.\n\nMulti-namespace deployment enables:\n- Namespace isolation: Separate Redis Enterprise resources by team, environment, or application\n- Centralized management: Single operator manages multiple namespaces\n- Resource sharing: Efficient use of cluster resources across namespaces\n- Flexible RBAC: Fine-grained permissions per namespace\n\nThis example shows:\n- Operator namespace: `redis-enterprise-operator` (where the operator and REC run)\n- Consumer namespaces: `app-production`, `app-staging` (where REDB resources are created)\n\nFor complete deployment instructions, see [Manage databases in multiple namespaces](https://redis.io/docs/latest/operate/kubernetes/re-clusters/multi-namespace).\n\n## Operator service account\n\nDeploy these resources in the namespace where the Redis Enterprise operator runs.\n\n\n\n## Operator cluster role\n\nGrant the operator cluster-wide permissions to manage resources across namespaces.\n\n\n\n## Operator cluster role binding\n\n\n\n## Consumer role\n\n\n\n## Consumer role binding\n\n\n\nConsumer namespace configuration:\n\n- `subjects.name`: Must match the operator service account name\n- `subjects.namespace`: Must be the operator namespace, not the consumer namespace\n- `roleRef.name`: Must match the consumer role name\n\n## Next steps\n\n- [Configure networking across namespaces](https://redis.io/docs/latest/operate/kubernetes/networking)\n- [Set up monitoring for multi-namespace deployment](https://redis.io/docs/latest/operate/kubernetes/re-clusters/connect-prometheus-operator)\n- [Learn about resource management](https://redis.io/docs/latest/operate/kubernetes/recommendations)\n\n## Related documentation\n\n- [Manage databases in multiple namespaces](https://redis.io/docs/latest/operate/kubernetes/re-clusters/multi-namespace)\n- [RBAC configuration](https://redis.io/docs/latest/operate/kubernetes/security)\n- [Kubernetes namespaces](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/)\n",
  "tags": ["docs","operate","kubernetes"],
  "last_updated": "2026-06-04T14:49:57+01:00"
}
