diff --git a/lib/discovery/resources/ingress.ex b/lib/discovery/resources/ingress.ex index 46f3c54..839f25d 100644 --- a/lib/discovery/resources/ingress.ex +++ b/lib/discovery/resources/ingress.ex @@ -24,9 +24,14 @@ defmodule Discovery.Resources.Ingress do new_path = %{ "path" => "/#{app.uid}(/|$)(.*)", # "pathType" => "ImplementationSpecific", + "pathType" => "Prefix", "backend" => %{ - "serviceName" => "#{app.app_name}-#{app.uid}", - "servicePort" => 80 + "service" => %{ + "name" => "#{app.app_name}-#{app.uid}", + "port" => %{ + "number" => 80 + } + } } } diff --git a/priv/templates/service.yml b/priv/templates/service.yml index 3b30a01..779009d 100644 --- a/priv/templates/service.yml +++ b/priv/templates/service.yml @@ -5,6 +5,7 @@ metadata: name: APP_NAME-UID namespace: discovery spec: + type: NodePort ports: - port: 80 targetPort: 3245