dragonflydb / dragonfly-operator

A Kubernetes operator to install and manage Dragonfly instances.
https://www.dragonflydb.io/docs/managing-dragonfly/operator/installation
Apache License 2.0
118 stars 24 forks source link

fix(resource): add HEALTHCHECK_PORT env in the statefulset #175

Closed Abhra303 closed 2 months ago

Abhra303 commented 2 months ago

The healthcheck script tries to automatically finds out the dragonfly port when HEALTHCHECK_PORT not set. Dragonfly v1.16 set the last entry (returned by netstat command) as the healthcheck port which may or may not be a dragonfly port. Pass the environment to the statefulset containers so that it always set the healthcheck port to dragonfly.