Skip to content

Commit

Permalink
-external-cloud-provider machine-controller flag (#361)
Browse files Browse the repository at this point in the history
Signed-off-by: Artiom Diomin <[email protected]>
  • Loading branch information
kron4eg authored and kubermatic-bot committed Apr 20, 2019
1 parent 9d64820 commit 8eb841b
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions pkg/templates/machinecontroller/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,17 @@ func machineControllerDeployment(cluster *config.Cluster) (*appsv1.Deployment, e
return nil, errors.Wrap(err, "failed to get clusterDNS IP")
}

args := []string{
"-logtostderr",
"-v", "4",
"-internal-listen-address", "0.0.0.0:8085",
"-cluster-dns", clusterDNS.String(),
}

if cluster.Provider.External {
args = append(args, "-external-cloud-provider")
}

return &appsv1.Deployment{
TypeMeta: metav1.TypeMeta{
APIVersion: "apps/v1",
Expand Down Expand Up @@ -842,16 +853,11 @@ func machineControllerDeployment(cluster *config.Cluster) (*appsv1.Deployment, e
},
Containers: []corev1.Container{
{
Name: "machine-controller",
Image: "docker.io/kubermatic/machine-controller:" + MachineControllerTag,
ImagePullPolicy: corev1.PullIfNotPresent,
Command: []string{"/usr/local/bin/machine-controller"},
Args: []string{
"-logtostderr",
"-v", "4",
"-internal-listen-address", "0.0.0.0:8085",
"-cluster-dns", clusterDNS.String(),
},
Name: "machine-controller",
Image: "docker.io/kubermatic/machine-controller:" + MachineControllerTag,
ImagePullPolicy: corev1.PullIfNotPresent,
Command: []string{"/usr/local/bin/machine-controller"},
Args: args,
Env: getEnvVarCredentials(cluster),
TerminationMessagePath: corev1.TerminationMessagePathDefault,
TerminationMessagePolicy: corev1.TerminationMessageReadFile,
Expand Down

0 comments on commit 8eb841b

Please sign in to comment.