fix(terraform): cap EPHEMERAL volume size to reserve disk space for swap partition on worker nodes
This commit is contained in:
@@ -44,8 +44,7 @@ machine:
|
||||
validSubnets:
|
||||
- 192.168.1.0/24
|
||||
install:
|
||||
diskSelector:
|
||||
match: disk.transport == "nvme"
|
||||
disk: ${install_disk}
|
||||
image: ${factory_image}
|
||||
wipe: true
|
||||
grubUseUKICmdline: true
|
||||
@@ -100,6 +99,15 @@ cluster:
|
||||
%{ if swap_size != "" ~}
|
||||
---
|
||||
apiVersion: v1alpha1
|
||||
kind: VolumeConfig
|
||||
name: EPHEMERAL
|
||||
provisioning:
|
||||
diskSelector:
|
||||
match: disk.transport == "nvme"
|
||||
maxSize: ${ephemeral_max_size}
|
||||
grow: false
|
||||
---
|
||||
apiVersion: v1alpha1
|
||||
kind: SwapVolumeConfig
|
||||
name: swap1
|
||||
provisioning:
|
||||
|
||||
Reference in New Issue
Block a user