Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-1.8] templates/flavors/flatcar: fix mounting etcd disk #3308

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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.