Skip to content

Commit

Permalink
test-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdsb committed Feb 1, 2024
1 parent c50530a commit b8386d6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
elixir 1.12.2-otp-24
erlang 24.0
nodejs 14.17.3
10 changes: 9 additions & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,19 @@ config :discovery, :base_url, "http://localhost:4000"
config :discovery,
connection_method: :kube_config,
namespace: "discovery",
service_account: "discovery-service-account",
## "discovery-service-account",
service_account: "default",
resources: %{
limits: %{cpu: "500m", memory: "500Mi"},
requests: %{cpu: "100m", memory: "300Mi"}
},
image_pull_secrets: "ghostdsb-auth-discovery",
use_external_ingress_class: false,
use_service_account: true

# config :discovery, :api_version,
# config_map: "v1",
# deployment: "apps/v1",
# ingress: "networking.k8s.io/v1beta1",
# namespace: "v1",
# service: "v1"
1 change: 1 addition & 0 deletions lib/discovery/resources/ingress.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ defmodule Discovery.Resources.Ingress do
def add_ingress_path(current_ingress_map, app) do
new_path = %{
"path" => "/#{app.uid}(/|$)(.*)",
# "pathType" => "ImplementationSpecific",
"backend" => %{
"serviceName" => "#{app.app_name}-#{app.uid}",
"servicePort" => 80
Expand Down

0 comments on commit b8386d6

Please sign in to comment.