Skip to content

Commit

Permalink
Merge pull request #3308 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…3267-to-release-1.8

[release-1.8] templates/flavors/flatcar: fix mounting etcd disk
  • Loading branch information
k8s-ci-robot authored Mar 16, 2023
2 parents d1da3f5 + 1c92183 commit c6d83a6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 31 deletions.
18 changes: 8 additions & 10 deletions templates/cluster-template-flatcar.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 9 additions & 11 deletions templates/flavors/flatcar/patches/kubeadm-controlplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ metadata:
name: ${CLUSTER_NAME}-control-plane
spec:
kubeadmConfigSpec:
# Workaround for https://github.com/kubernetes-sigs/cluster-api/issues/7679.
diskSetup:
filesystems: []
filesystems:
- device: /dev/disk/azure/scsi1/lun0
extraOpts:
- -E
- lazy_itable_init=1,lazy_journal_init=1
filesystem: ext4
label: etcd_disk
overwrite: false
# Workaround for https://github.com/kubernetes-sigs/cluster-api/issues/7679.
partitions: []
format: ignition
ignition:
Expand All @@ -27,15 +34,6 @@ spec:
- device: /dev/disk/azure/scsi1/lun0
partitions:
- number: 1
filesystems:
- name: etcd_disk
mount:
device: /dev/disk/azure/scsi1/lun0
format: ext4
label: etcd_disk
options:
- -E
- lazy_itable_init=1,lazy_journal_init=1
initConfiguration:
nodeRegistration:
name: '@@HOSTNAME@@'
Expand Down
18 changes: 8 additions & 10 deletions templates/test/ci/cluster-template-prow-flatcar.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c6d83a6

Please sign in to comment.