Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Add PORT environment variable in K8s pods (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaoWen authored and nsinkov committed Feb 13, 2019
1 parent 85a579e commit 0b8889c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions waiter/src/waiter/scheduler/kubernetes.clj
Expand Up @@ -687,6 +687,7 @@
:value (str log-bucket-url "/" run-as-user "/" service-id)}])
(for [[k v] base-env]
{:name k :value v})
[{:name "PORT" :value (str port0)}]
(for [i (range ports)]
{:name (str "PORT" i) :value (str (+ port0 i))})))
k8s-name (service-id->k8s-app-name scheduler service-id)
Expand Down

0 comments on commit 0b8889c

Please sign in to comment.