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

Automatically determine GCE zone for the initial MachineDeployment #1703

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

xmudrii
Copy link
Member

@xmudrii xmudrii commented Dec 23, 2021

What this PR does / why we need it:

Currently, our example Terraform configs for GCE are always deploying the initial MachineDeployment in the -a zone. However, the -a zone doesn't exist in all regions. For example, us-east1 has only -b to -d zones. In such cases, KubeOne will fail to create the initial MachineDeployment.

This PR modifies our Terraform configs to automatically determine the first zone. We use that zone to deploy the initial MachineDeployment there.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1263

Does this PR introduce a user-facing change?:

Automatically determine GCE zone for the initial MachineDeployment

/assign @moadqassem

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
@kubermatic-bot kubermatic-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 23, 2021
@xmudrii
Copy link
Member Author

xmudrii commented Dec 23, 2021

/hold
to let #1701 merge first

@kubermatic-bot kubermatic-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 23, 2021
Copy link
Member

@moadqassem moadqassem left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 23, 2021
@kubermatic-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 9fc1e3aeb3cde412e07a14fdc4947cf4ce267b80

@kubermatic-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: moadqassem, 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

@xmudrii
Copy link
Member Author

xmudrii commented Dec 23, 2021

/hold cancel

@kubermatic-bot kubermatic-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 23, 2021
@kubermatic-bot kubermatic-bot merged commit f213626 into master Dec 23, 2021
@kubermatic-bot kubermatic-bot added this to the KubeOne 1.4 milestone Dec 23, 2021
@kubermatic-bot kubermatic-bot deleted the gce-first-zone branch December 23, 2021 14:07
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 Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bad zone fixed setting at GCE Terraform output.tf causes failure in the deployment of workers pool
3 participants