Make sure Binds are unique
@@ -195,7 +195,7 @@ func (c *Cluster) BuildKubeAPIProcess(prefixPath string) v3.Process {
Name: services.KubeAPIContainerName,
Command: Command,
VolumesFrom: VolumesFrom,
- Binds: Binds,
+ Binds: getUniqStringList(Binds),
Env: getUniqStringList(c.Services.KubeAPI.ExtraEnv),
NetworkMode: "host",
RestartPolicy: "always",
@@ -281,7 +281,7 @@ func (c *Cluster) BuildKubeControllerProcess(prefixPath string) v3.Process {
Command: Command,
Args: args,
VolumesFrom: VolumesFrom,
- Binds: Binds,
+ Binds: getUniqStringList(Binds),
Env: getUniqStringList(c.Services.KubeController.ExtraEnv),
NetworkMode: "host",
RestartPolicy: "always",
@@ -394,7 +394,7 @@ func (c *Cluster) BuildKubeletProcess(host *hosts.Host, prefixPath string) v3.Pr
Name: services.KubeletContainerName,
Command: Command,
VolumesFrom: VolumesFrom,
- Binds: Binds,
+ Binds: getUniqStringList(Binds),
Env: getUniqStringList(c.Services.Kubelet.ExtraEnv),
NetworkMode: "host",
RestartPolicy: "always",
@@ -459,7 +459,7 @@ func (c *Cluster) BuildKubeProxyProcess(host *hosts.Host, prefixPath string) v3.
Name: services.KubeproxyContainerName,
Command: Command,
VolumesFrom: VolumesFrom,
- Binds: Binds,
+ Binds: getUniqStringList(Binds),
Env: c.Services.Kubeproxy.ExtraEnv,
NetworkMode: "host",
RestartPolicy: "always",
@@ -550,7 +550,7 @@ func (c *Cluster) BuildSchedulerProcess(prefixPath string) v3.Process {
return v3.Process{
Name: services.SchedulerContainerName,
Command: Command,
- Binds: Binds,
+ Binds: getUniqStringList(Binds),
Env: c.Services.Scheduler.ExtraEnv,
VolumesFrom: VolumesFrom,
NetworkMode: "host",
@@ -655,7 +655,7 @@ func (c *Cluster) BuildEtcdProcess(host *hosts.Host, etcdHosts []*hosts.Host, pr
return v3.Process{
Name: services.EtcdContainerName,
Args: args,
- Binds: Binds,
+ Binds: getUniqStringList(Binds),
Env: Env,
NetworkMode: "host",
RestartPolicy: "always",
