Skip to content

Commit

Permalink
configurable root volume size. fix var. name
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed Aug 21, 2024
1 parent 0f07038 commit 7755942
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions templates/aws/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ spec:
instanceType: ${AWS_CONTROL_PLANE_INSTANCE_TYPE}
publicIP: ${AWS_PUBLIC_IP}
sshKeyName: ${AWS_SSH_KEY_NAME}
rootVolume:
size: ${AWS_CONTROL_PLANE_ROOT_VOLUME_SIZE}
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
Expand Down Expand Up @@ -116,6 +118,8 @@ spec:
instanceType: ${AWS_NODE_INSTANCE_TYPE}
publicIP: ${AWS_PUBLIC_IP}
sshKeyName: ${AWS_SSH_KEY_NAME}
rootVolume:
size: ${AWS_NODE_ROOT_VOLUME_SIZE}
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
kind: CK8sConfigTemplate
Expand Down
6 changes: 4 additions & 2 deletions templates/aws/template-variables.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ export AWS_REGION="" # e.g. "us-east-2"
# AWS machine configuration
export AWS_CREATE_BASTION= # e.g. "true"
export AWS_PUBLIC_IP= # e.g. "true"
export AWS_CONTROL_PLANE_MACHINE_FLAVOR= # e.g. "t3.large"
export AWS_NODE_MACHINE_FLAVOR= # e.g. "t3.large"
export AWS_CONTROL_PLANE_INSTANCE_TYPE= # e.g. "t3.large"
export AWS_NODE_INSTANCE_TYPE= # e.g. "t3.large"
export AWS_CONTROL_PLANE_ROOT_VOLUME_SIZE= # in Gi, e.g. 16
export AWS_NODE_ROOT_VOLUME_SIZE= # in Gi, e.g. 16
export AWS_SSH_KEY_NAME= # e.g. "default"
export AWS_AMI_ID= # e.g. "ami-0ad50e72a79228704"

Expand Down

0 comments on commit 7755942

Please sign in to comment.