Skip to content

Commit

Permalink
Switch to non-preformatted etcd DOBS volumes (#403)
Browse files Browse the repository at this point in the history
Preformatted disks in DOBS are formatted by the droplet OS after the disk is
attached to the droplet and get automounted afterwards. This is a race condition
between the formatting part and the remount that capi does. In error cases you
could end up with a crashing formatter that leaves you with a tiny initial FS
that is not grown to the specified value.

In order to avoid this, we need to switch to non-preformatted disks and let capi
take care of FS creation.
  • Loading branch information
gottwald authored Oct 4, 2022
1 parent 9b200cf commit edc7ee2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/cluster-template-ext-etcd-storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ spec:
etcd:
local:
dataDir: /var/lib/etcddata/etcd
diskSetup:
filesystems:
- device: /dev/sda
filesystem: ext4
label: etcd_data
partition: "none"
mounts:
- - LABEL=etcd_data
- /var/lib/etcddata
Expand All @@ -66,8 +72,6 @@ spec:
dataDisks:
- diskSizeGB: 256
nameSuffix: etcd
filesystemType: ext4
filesystemLabel: etcd_data
size: "${DO_CONTROL_PLANE_MACHINE_TYPE}"
image: ${DO_CONTROL_PLANE_MACHINE_IMAGE}
sshKeys:
Expand Down

0 comments on commit edc7ee2

Please sign in to comment.