[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: CMD with env vars



Isn't your env var WORKER_ID?  You only need the shell if you're
trying to use curly braces.  The parenthesis syntax is supported by
kube.

On Thu, Feb 25, 2016 at 2:04 PM, Philippe Lafoucrière
<philippe lafoucriere tech-angels com> wrote:
>
> On Thu, Feb 25, 2016 at 2:01 PM, Clayton Coleman <ccoleman redhat com>
> wrote:
>>
>> Defaults are not supported in the kube syntax.  If you want to do
>> shell expansion, your command has to be `["/bin/sh", "-c",
>> "--worker-id=${WORKER_ID:-0}"]`
>
>
> Ok, that probably why, thanks Clayton. Anyway, I already tried:
>
>     spec:
>       containers:
>       - command:
>         - /bin/sh
>         - -c
>         - /nsqd
>         - --worker-id=$(WORKER)
>
> and it's not working either :(
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]