Skip to content

Commit c6d83a6

Browse files
authored
Merge pull request #3308 from k8s-infra-cherrypick-robot/cherry-pick-3267-to-release-1.8
[release-1.8] templates/flavors/flatcar: fix mounting etcd disk
2 parents d1da3f5 + 1c92183 commit c6d83a6

File tree

3 files changed

+25
-31
lines changed

3 files changed

+25
-31
lines changed

templates/cluster-template-flatcar.yaml

Lines changed: 8 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/flavors/flatcar/patches/kubeadm-controlplane.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@ metadata:
55
name: ${CLUSTER_NAME}-control-plane
66
spec:
77
kubeadmConfigSpec:
8-
# Workaround for https://github.com/kubernetes-sigs/cluster-api/issues/7679.
98
diskSetup:
10-
filesystems: []
9+
filesystems:
10+
- device: /dev/disk/azure/scsi1/lun0
11+
extraOpts:
12+
- -E
13+
- lazy_itable_init=1,lazy_journal_init=1
14+
filesystem: ext4
15+
label: etcd_disk
16+
overwrite: false
17+
# Workaround for https://github.com/kubernetes-sigs/cluster-api/issues/7679.
1118
partitions: []
1219
format: ignition
1320
ignition:
@@ -27,15 +34,6 @@ spec:
2734
- device: /dev/disk/azure/scsi1/lun0
2835
partitions:
2936
- number: 1
30-
filesystems:
31-
- name: etcd_disk
32-
mount:
33-
device: /dev/disk/azure/scsi1/lun0
34-
format: ext4
35-
label: etcd_disk
36-
options:
37-
- -E
38-
- lazy_itable_init=1,lazy_journal_init=1
3937
initConfiguration:
4038
nodeRegistration:
4139
name: '@@HOSTNAME@@'

templates/test/ci/cluster-template-prow-flatcar.yaml

Lines changed: 8 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)