Skip to content

Commit

Permalink
install specific control plane version through kubeadm
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanad committed Dec 4, 2018
1 parent a5b920d commit 9b3a268
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cloud/azure/services/resourcemanagement/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ PUBLICIP=$(curl -H Metadata:true "http://169.254.169.254/metadata/instance/netwo
cat > kubeadm_config.yaml <<EOF
apiVersion: kubeadm.k8s.io/v1alpha2
kind: MasterConfiguration
kubernetesVersion: v%v
api:
advertiseAddress: ${PUBLICIP}
bindPort: ${PORT}
Expand All @@ -216,7 +217,7 @@ cp -i /etc/kubernetes/admin.conf /home/ClusterAPI/.kube/config
chown $(id -u ClusterAPI):$(id -g ClusterAPI) /home/ClusterAPI/.kube/config
KUBECONFIG=/etc/kubernetes/admin.conf kubectl apply -f https://raw.githubusercontent.com/cloudnativelabs/kube-router/master/daemonset/kubeadm-kuberouter.yaml
) 2>&1 | tee /var/log/startup.log`, machine.Spec.Versions.Kubelet, machine.Spec.Versions.ControlPlane, machine.Spec.Versions.ControlPlane)
) 2>&1 | tee /var/log/startup.log`, machine.Spec.Versions.Kubelet, machine.Spec.Versions.ControlPlane, machine.Spec.Versions.ControlPlane, machine.Spec.Versions.ControlPlane)
return startupScript, nil
} else if machineConfig.Roles[0] == azureconfigv1.Node {
startupScript := fmt.Sprintf(`(
Expand Down

0 comments on commit 9b3a268

Please sign in to comment.