Redis-cluster is deployed in k8s, and the program built as a mirror is also deployed to k8s. The ClusterIP provided by redis service can normally connect to the redis service in k8s. If the redis service name cannot connect to the redis service in k8s, why is this Redis redis connection problem in k8s Redis redis connection problem in k8s

Comment From: ShooterIT

Hi @1280019840 I am not familiar with k8s, do you take a look at cluster-announce-hostname config?

# Clusters can configure their announced hostname using this config. This is a common use case for 
# applications that need to use TLS Server Name Indication (SNI) or dealing with DNS based
# routing. By default this value is only shown as additional metadata in the CLUSTER SLOTS
# command, but can be changed using 'cluster-preferred-endpoint-type' config. This value is 
# communicated along the clusterbus to all nodes, setting it to an empty string will remove 
# the hostname and also propagate the removal.
#
# cluster-announce-hostname ""