Kubernetes rc sent args to container app

3/3/2016

question: I have a cluster run by k8s,and I run a app by rc.yaml. My app need a args id(unique),setup id in rc.yaml.

args:
   - -id
   - ip-172-31-31-205.ap-northeast-1.compute.internal-2

if I setup replicas=2,how to control the id is different.

-- david guo
docker
kubernetes

1 Answer

3/3/2016

Check out the ConfigMap type that's being added to the new version of Kubernetes being released this month.

-- Alex Robinson
Source: StackOverflow