Change quarkus hazelcast cluster member ip

11/4/2021

is it possible to change quarkus.hazelcast-client.cluster-members=hazelcast:5701 to 127.0.0.1 but in kubernetes (not in application.properties)? For example in ConfigMap?

My configmap looks like this:

hazelcast.yaml: |-
  hazelcast:
    network:
      join:
        multicast:
          enabled: false
        kubernetes:
          enabled: true
          namespace: dev-1
          service-port: 5701

And I'm using hazelcast as sidecar container for my application.

-- Michael
hazelcast
kubernetes
quarkus

1 Answer

11/5/2021

For Hazelcast configuration, you can override properties in different ways:

  • Use a System property
  • Use an environment variable
  • Provide a different configuration file

However, your question relates to Quarkus and not Hazelcast. Quarkus also offers a couple of configuration override techniques:

  • System properties
  • Environment variables
  • .env file in the current working directory
  • Quarkus Application configuration file in $PWD/config/application.properties
  • Quarkus Application configuration file application.properties in classpath
  • MicroProfile Config configuration file

In this regard, @Turing85 comment is correct.

-- Nicolas
Source: StackOverflow