Skip to content
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

Merged
merged 3 commits into from
Apr 6, 2021

Conversation

dharapvj
Copy link
Contributor

@dharapvj dharapvj commented Apr 5, 2021

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 run kubeone 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?:

NONE

@kubermatic-bot kubermatic-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: no Denotes that at least one commit in the pull request doesn't have a valid DCO signoff message. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 5, 2021
@dharapvj dharapvj requested a review from kron4eg April 5, 2021 10:03
Copy link
Member

@xmudrii xmudrii left a 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.

Copy link
Member

@xmudrii xmudrii left a 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.

@@ -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
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

dharapvj and others added 3 commits April 6, 2021 08:46
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]>
@kron4eg kron4eg force-pushed the azure_pubip_improvements branch from 6089507 to ddf848c Compare April 6, 2021 05:50
@kubermatic-bot kubermatic-bot added dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. and removed dco-signoff: no Denotes that at least one commit in the pull request doesn't have a valid DCO signoff message. labels Apr 6, 2021
@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 6, 2021
@kubermatic-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 0f07a6aa9fd99a9251ac710b524a7b4ff3c02282

@kron4eg kron4eg requested a review from xmudrii April 6, 2021 06:27
Copy link
Member

@xmudrii xmudrii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@kubermatic-bot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubermatic-bot kubermatic-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 6, 2021
@kubermatic-bot kubermatic-bot merged commit a609611 into master Apr 6, 2021
@kubermatic-bot kubermatic-bot added this to the KubeOne 1.3 milestone Apr 6, 2021
@kubermatic-bot kubermatic-bot deleted the azure_pubip_improvements branch April 6, 2021 07:23
hwuethrich added a commit to hwuethrich/kubeone that referenced this pull request Aug 3, 2021
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants