Helm 图表:无法通过 Service 正确暴露 Memcached 端口 (11211);`service.port=11211` 仍会路由到 Redis 端口 (6379),因为 Service `targetPort` 是固定的
作者: tebaly创建于 2026年2月8日更新于 2026年9月30日
标签bugstale
Bug description
When deploying Dragonfly via the official OCI Helm chart and enabling Memcached mode (--memcached_port=11211), setting service.port: 11211 does not expose the Memcached protocol on the Service. The Service still routes traffic to the Redis listener (6379) because the chart’s Service targetPort is fixed to the named port dragonfly (which maps to containerPort 6379). This makes “drop-in memcached replacement on Kubernetes” non-trivial: users have to create an additional Service (e.g. via extraObjects) that explicitly targets port 11211.
内容来源: dragonflydb/dragonfly