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

feature(main): add tf as infra #4024

Merged
merged 3 commits into from
Oct 7, 2023
Merged

Conversation

cuisongliu
Copy link
Collaborator

@cuisongliu cuisongliu commented Sep 30, 2023

🤖 Generated by Copilot at 1726cca

Summary

📝🚀🌐

This pull request adds Terraform files and scripts to the test/terraform directory to enable creating and destroying a test environment for the sealos project on Alibaba Cloud. The test environment consists of a sealos instance and six kube instances in a VPC. The Terraform files support different architectures by using different image ids and regions.

test/terraform grows
Adding resources and scripts
Autumn of sealos

Walkthrough

  • Add Terraform files and scripts to create a test environment for the sealos project on Alibaba Cloud (link, link, link, link, link, link, link)
  • Configure the Alibaba Cloud provider with the region variable in providers.tf (link)
  • Define the default and architecture-specific variables for the Terraform resources in vars.tf, vars.tf.amd64 and vars.tf.arm64 (link, link, link)
  • Create a VPC, a VSW, a security group, a security group rule and seven instances in terraform.tf (link)
  • Export the Alibaba Cloud access key and secret key as environment variables and run terraform destroy in init.sh (link)
  • Ignore the Terraform state files, lock file and cache directory in .gitignore (link)

@sealos-ci-robot
Copy link
Member

sealos-ci-robot commented Sep 30, 2023

🤖 Generated by lychee action

Summary

Status Count
🔍 Total 976
✅ Successful 403
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 572
❓ Unknown 0
🚫 Errors 0

Full action output

Full Github Actions output

@codecov
Copy link

codecov bot commented Sep 30, 2023

Codecov Report

All modified lines are covered by tests ✅

📢 Thoughts on this report? Let us know!.

@cuisongliu cuisongliu force-pushed the infra_terraform branch 2 times, most recently from b77230c to 5896ea0 Compare October 4, 2023 14:03
@pull-request-size
Copy link

Whoa! Easy there, Partner!

This PR is too big. Please break it up into smaller PRs.

@cuisongliu cuisongliu marked this pull request as ready for review October 5, 2023 11:43
@cuisongliu cuisongliu added this to the v5.0 milestone Oct 5, 2023
@cuisongliu cuisongliu force-pushed the infra_terraform branch 3 times, most recently from ddcb8d4 to e39ee20 Compare October 6, 2023 16:57
@cuisongliu cuisongliu merged commit cbf61f8 into labring:main Oct 7, 2023
@cuisongliu cuisongliu deleted the infra_terraform branch October 7, 2023 11:04
bxy4543 pushed a commit to bxy4543/sealos that referenced this pull request Oct 13, 2023
* feature(main): add tf as infra

Signed-off-by: cuisongliu <[email protected]>

* feature(main): add tf as infra

Signed-off-by: cuisongliu <[email protected]>

* feature(main): mv testdata to kubeadm dir

Signed-off-by: cuisongliu <[email protected]>

---------

Signed-off-by: cuisongliu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants