Skip to content

Commit

Permalink
using nodeport instead of clusterIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdsb committed Feb 25, 2024
1 parent 32a5c6d commit a602f12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/discovery/resources/ingress.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}

Expand Down
1 change: 1 addition & 0 deletions priv/templates/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: APP_NAME-UID
namespace: discovery
spec:
type: NodePort
ports:
- port: 80
targetPort: 3245
Expand Down

0 comments on commit a602f12

Please sign in to comment.