ghcr.io/ot-container-kit/redis-operator/redis-operator:v0.18.0
Redis Operator
镜像名称:ghcr.io/ot-container-kit/redis-operator/redis-operator
参考标签:latest
一个基于Golang的Redis operator,用于在Kubernetes上创建和管理Redis独立、集群、复制和哨兵模式部署。它能在云环境和裸金属环境中按照最佳实践创建Redis部署,并提供使用redis-exporter的内置监控功能。
有关文档,请参考
正在使用Redis Operator管理其Redis工作负载的组织可在此处查看。如果您的组织也在使用Redis Operator,欢迎通过创建https://github.com/OT-CONTAINER-KIT/redis-operator/pulls进行添加。
本operator仅支持Redis >=6版本。
Architecture
Purpose
在Kubernetes上部署Redis时,人们会遇到多种问题,尤其是集群类型部署。创建此operator的目的是提供一个简单且生产就绪的Redis部署接口,包括最佳实践、安全控制、监控和管理功能。
Supported Features
以下是本operator支持的功能:
- Redis独立、集群、复制和哨兵模式部署
- Redis集群故障转移与恢复
- 使用redis exporter的内置监控
- Redis带密码和无密码部署
- TLS支持,提供额外安全层
- Redis部署支持IPv4和IPv6
- 详细的Grafana监控面板
请查看安装指南以使用operator部署您的第一个集群。
Image Compatibility
本operator支持Redis >=6.x版本。但强烈建议使用最新稳定版本,以确保您获得上游最新的安全修复和错误补丁。
容器镜像:
- Redis:
quay.io/opstree/redis - Sentinel:
quay.io/opstree/redis-sentinel - Exporter:
quay.io/opstree/redis-exporter
Monitoring with Prometheus
为监控Redis性能,我们将使用Prometheus。无需额外的Prometheus配置,因为我们采用Prometheus服务发现模式。为此,我们已设置以下注解:
annotations:
redis.opstreelabs.in: "true"
prometheus.io/scrape: "true"
prometheus.io/port: "9121"
除注解外,您还可以为每个Redis部署配置部署ServiceMonitor(可通过Helm values文件配置)。
Grafana面板集成
本operator支持详细的Grafana面板(ID ***),用于可视化Prometheus收集的Redis指标。如需手动导入,请从https://grafana.com/grafana/dashboards/***-redis-dashboard-opstree/下载JSON文件。
如需将此面板作为ConfigMap自动部署(通过kube-prometheus-stack sidecar自动导入),可考虑社区Helm chart:https://github.com/Emrin/redis-grafana-dashboard(也可在https://artifacthub.io/packages/helm/redis-grafana-dashboard/redis-grafana-dashboard获取)。
Contribution
详情请参见我们的CONTRIBUTING.md。
Release History
详情请参见我们的发布历史。
Contact Information
本项目由OpsTree Solutions管理。如有任何疑问或建议,可通过***联系我们。
加入我们的Slack频道:#redis-operator。
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务