File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -393,10 +393,17 @@ func reconcileRabbitMQ(
393393 Log .Info ("Setting AdditionalConfig" )
394394 // This is the same situation as RABBITMQ_UPGRADE_LOG above,
395395 // except for the "main" rabbitmq log we can just force it to use the console.
396+
397+ // By default the prometheus and management endpoints always bind to ipv4.
398+ // We need to set the correct address based on the IP version in use.
396399 var settings []string
397400 settings = append (settings , "log.console = true" )
401+ settings = append (settings , "prometheus.tcp.ip = ::" )
402+ settings = append (settings , "management.tcp.ip = ::" )
398403 if tlsCert != "" {
399404 settings = append (settings , "ssl_options.verify = verify_none" )
405+ settings = append (settings , "prometheus.ssl.ip = ::" )
406+ // management ssl ip needs to be set in the AdvancedConfig
400407 }
401408 rabbitmq .Spec .Rabbitmq .AdditionalConfig = strings .Join (settings , "\n " )
402409 }
@@ -436,6 +443,7 @@ func reconcileRabbitMQ(
436443 ]},
437444 {rabbitmq_management, [
438445 {ssl_config, [
446+ {ip,"::"},
439447 {cacertfile,"/etc/rabbitmq-tls/ca.crt"},
440448 {certfile,"/etc/rabbitmq-tls/tls.crt"},
441449 {keyfile,"/etc/rabbitmq-tls/tls.key"},
You can’t perform that action at this time.
0 commit comments