cluster-with-k8s.conf.example 718 B

123456789101112131415161718192021222324252627282930
  1. ## Cluster discovery via Kubernetes API server mode
  2. cluster {
  3. ## Human-friendly name of the EMQX cluster.
  4. name = emqxcl
  5. ## Service discovery method for the cluster nodes
  6. discovery_strategy = k8s
  7. ## If true, the node will try to heal network partitions automatically
  8. autoheal = true
  9. k8s {
  10. ## Kubernetes API endpoint URL
  11. apiserver = "https://kubernetes.default.svc:443"
  12. ## EMQX broker service name
  13. service_name = emqx
  14. ## Address type used for connecting to the discovered nodes
  15. ## Type: ip | dns | hostname
  16. address_type = ip
  17. ## Kubernetes namespace
  18. namespace = default
  19. ## Node name suffix
  20. suffix = "pod.local"
  21. }
  22. }