Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com> |
||
|---|---|---|
| .. | ||
| aws | ||
| files | ||
| scripts/opensuse | ||
| Makefile | ||
| README.md | ||
README.md
RKE2 CAPI image builder
Description
This directory contains the scripts and configuration files to build the images used by the RKE2 CAPI provider. It relies on the packer tool to build the images.
We are using bash scripts to provision images with required dependencies, scripts for each platform are located in the scripts directory.
AWS
Requirements
-
Your AWS account must have the following permissions: https://developer.hashicorp.com/packer/plugins/builders/amazon#iam-task-or-instance-role
-
You must a default VPC in your AWS account. If you don't have one, you can create one using the following command:
aws ec2 create-default-vpc
Steps
For building the AWS AMIs, you can run the following command, this command will build a private openSUSE AMI:
make build-aws-opensuse-leap-155 RKE2_VERSION=${RKE2_VERSION}
or
make help
and it will show you the available options.