mirrord icon indicating copy to clipboard operation
mirrord copied to clipboard

Erlang - `Cluster.Strategy.Kubernetes` leads to error

Open t4lz opened this issue 1 year ago • 2 comments

Bug Description

When using Cluster.Strategy.Kubernetes as a strategy users get an error:

{"time":"2023-11-09T18:17:39.456Z","severity":"error","message":"[libcluster:service_cluster] request to kubernetes failed!: {:failed_connect, [{:to_address, {'kubernetes.default.svc.cluster.local', 443}}, {:inet, [:inet], :nxdomain}]}","metadata":{"domain":["elixir"],"erl_level":"error"}}

Steps to Reproduce

The declaration of the topology is

 topologies = [
            service_cluster: [
              strategy: Cluster.Strategy.Kubernetes,
              config: [
                kubernetes_ip_lookup_mode: :pods,
                kubernetes_node_basename: app_name,
                kubernetes_selector: "app=#{app_name}-web",
                kubernetes_namespace: namespace,
                polling_interval: polling_interval
              ]
            ]
          ]

Backtrace

No response

Relevant Logs

No response

Your operating system and version

Mac OS 14.1

Local process

User is developing in Elixir

Local process version

No response

Additional Info

https://canary.discord.com/channels/933706914808889356/1169678897420439582/1174664744146309150

User works around the issue by changing their code to use Elixir.Cluster.Strategy.DNSPoll.

t4lz avatar Nov 21 '23 12:11 t4lz

Should be retested after https://github.com/metalbear-co/mirrord/pull/2179

aviramha avatar Jan 17 '24 18:01 aviramha

@infiniteregrets Can you retest please?

eyalb181 avatar Feb 01 '24 12:02 eyalb181