forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
User FAQ
bgrant0607 edited this page Nov 9, 2014
·
16 revisions
As discussed in Docker's documentation, the container's command is not necessarily executed in a shell, in which case environment variables are not expanded in command-line arguments. In particular, non-default commands are specified via Kubernetes's API using the array form of Docker's Cmd
argument, which causes the command to be exec
ed directly. You can cause environment variables to be evaluated by simply making your command a shell, with your application's command line as its argument. For example:
{ "command": [ "sh", "-c", "redis-server /etc/redis/redis.conf --slaveof $SERVICE_HOST $REDIS_MASTER_SERVICE_PORT"] }
Change NUM_MINIONS in the platform-specific config-default.sh file, such as GCE's.
Currently, NUM_MINIONS needs to be changed before turning up the cluster.
- See the answer on stackoverflow