-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Azure] Added 30 second delay in output so that publicIP for Azure VM is available #1306
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! I've left some comments.
/assign @kron4eg
Please take a look at this PR as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more comment, otherwise LGTM.
examples/terraform/azure/output.tf
Outdated
@@ -47,7 +47,7 @@ output "kubeone_workers" { | |||
# following outputs will be parsed by kubeone and automatically merged into | |||
# corresponding (by name) worker definition | |||
"${var.cluster_name}-pool1" = { | |||
replicas = 1 | |||
replicas = var.worker_node_vm_count |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be changed to initial_machinedeployment_replicas
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This remove the need of terraform refresh to get publicIP for Azure control_plane VM. Also added variable for machine counts for master and worker nodes Signed-off-by: Vijay Dharap <[email protected]>
Signed-off-by: Vijay Dharap <[email protected]>
…rlier. Signed-off-by: Vijay Dharap <[email protected]>
6089507
to
ddf848c
Compare
LGTM label has been added. Git tree hash: 0f07a6aa9fd99a9251ac710b524a7b4ff3c02282
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dharapvj, xmudrii The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* upstream/master: (23 commits) Use spot instances for E2E on AWS (kubermatic#1310) Add Kubernetes 1.21 presubmits (kubermatic#1312) Add Kubernetes 1.21 binaries to the kubeone-e2e image (kubermatic#1311) [Azure] Added 30 second delay in output so that publicIP for Azure VM is available (kubermatic#1306) Remove e2e build tag (kubermatic#1305) Automate certificates renew (kubermatic#1300) Disable repo_gpgcheck for the Kubernetes yum repo (kubermatic#1304) Unattended upgrades addon (kubermatic#1291) Add the changelog for the v1.2.1 release (kubermatic#1292) Use admissionregistration v1 (kubermatic#1290) Upgrade machinecontroller to v1.27.4 (kubermatic#1288) Install cri-tools on Amazon Linux 2 (kubermatic#1282) Add the changelog for the v1.2.0 release (kubermatic#1275) Upgrade dependencies (kubermatic#1279) Use machinecontroller v1.27.1 to fix issue with flatcar (kubermatic#1276) shfmt (kubermatic#1274) Upgrade machinecontroller to v1.27.0 (kubermatic#1272) Add the changelog for the v1.2.0-rc.1 release (kubermatic#1270) Update E2E tests to use Go 1.16.1 (kubermatic#1268) Update the kubeone-e2e image and build jobs to Go 1.16.1 (kubermatic#1267) ...
Also added variable for machine counts for master and worker nodes
What this PR does / why we need it:
Currently, for Azure, we must always do
terraform refresh
to get public IP in the output before we can runkubeone apply
. This step is not properly documented and is unnecessary. This PR adds a 30 second delay in finishing the output of terraform and thereby ensures that terraform output ALWAYS contains public ip for control plane VMs.PR also adds variables for count of control plane and worker nodes for easy control of these from variable instead of controlling via terraform files.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):NA
Special notes for your reviewer:
NA
Does this PR introduce a user-facing change?: