From b530b0eaa80f39ae384d24094a131c6c1a4c4677 Mon Sep 17 00:00:00 2001 From: Robert Prehn <3952444+prehnRA@users.noreply.github.com> Date: Fri, 21 May 2021 14:41:40 -0500 Subject: [PATCH] fix: Debug data for libcluster --- config/prod.exs | 3 +++ infrastructure/kube.yaml | 7 +++++++ infrastructure_templates/kube.yaml.dot | 7 +++++++ 3 files changed, 17 insertions(+) diff --git a/config/prod.exs b/config/prod.exs index 22af3f17..52911af5 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -82,6 +82,7 @@ config :core, Legendary.CoreMailer, config :core, email_from: System.get_env("EMAIL_FROM") config :libcluster, + debug: true, topologies: [ kubernetes: [ strategy: Elixir.Cluster.Strategy.Kubernetes, @@ -93,6 +94,8 @@ config :libcluster, kubernetes_namespace: System.get_env("NAMESPACE", "legendary"), polling_interval: 10_000]]] +IO.puts Kernel.node + # ## Using releases (Elixir v1.9+) # # If you are doing OTP releases, you need to instruct Phoenix diff --git a/infrastructure/kube.yaml b/infrastructure/kube.yaml index f398e64c..0c91d502 100644 --- a/infrastructure/kube.yaml +++ b/infrastructure/kube.yaml @@ -21,6 +21,13 @@ spec: containers: - name: app image: registry.gitlab.com/mythic-insight/legendary-doc-site:2.8.9 + command: ["elixir"] + args: + - "--name" + - "$(NAME)@$(POD_IP)" + - "-S" + - "mix" + - "phx.server" ports: - containerPort: 4000 - containerPort: 4369 diff --git a/infrastructure_templates/kube.yaml.dot b/infrastructure_templates/kube.yaml.dot index ab2d0bcf..2a314ebe 100644 --- a/infrastructure_templates/kube.yaml.dot +++ b/infrastructure_templates/kube.yaml.dot @@ -21,6 +21,13 @@ spec: containers: - name: app image: registry.gitlab.com/mythic-insight/legendary-doc-site:{{=it.version}} + command: ["elixir"] + args: + - "--name" + - "$(NAME)@$(POD_IP)" + - "-S" + - "mix" + - "phx.server" ports: - containerPort: 4000 - containerPort: 4369