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

Re: CMD with env vars




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]