| --- |
| apiVersion: metal3.io/v1alpha1 |
| metadata: |
| namespace: mosk |
| name: ucp-ctl |
| labels: |
| cluster.sigs.k8s.io/cluster-name: mosk |
| kaas.mirantis.com/provider: "baremetal" |
| kaas.mirantis.com/defaultBMHProfile: 'true' |
| kind: BareMetalHostProfile |
| spec: |
| devices: |
| - device: |
| workBy: "by_id,by_path,by_wwn,by_name" |
| minSize: 60Gi |
| wipeDevice: |
| eraseMetadata: |
| enabled: true |
| partitions: |
| - name: bios_grub |
| size: 4Mi |
| partflags: ['bios_grub'] |
| - name: uefi |
| partflags: ['esp'] |
| size: 200Mi |
| - name: config-2 |
| size: 64Mi |
| - name: root |
| size: 0 |
| fileSystems: |
| - fileSystem: vfat |
| partition: config-2 |
| - fileSystem: vfat |
| partition: uefi |
| mountPoint: /boot/efi |
| - fileSystem: ext4 |
| partition: root |
| mountPoint: / |
| mountOpts: 'rw,noatime,nodiratime,lazytime,nobarrier,commit=240,data=ordered' |
| |
| preDeployScript: | |
| #!/bin/bash -ex |
| echo $(date) 'pre_deploy_script done' >> /root/pre_deploy_done |
| postDeployScript: | |
| #!/bin/bash -ex |
| # used for test-debug only! |
| echo -e "root:r00tme" | sudo chpasswd |
| echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"' > /etc/udev/rules.d/60-ssd-scheduler.rules |
| echo $(date) 'post_deploy_script done' >> /root/post_deploy_done |
| grubConfig: |
| defaultGrubOptions: |
| - 'GRUB_DISABLE_RECOVERY="true"' |
| - 'GRUB_PRELOAD_MODULES=lvm' |
| - 'GRUB_TIMEOUT=20' |
| - 'GRUB_CMDLINE_LINUX="noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off systemd.journald.forward_to_console=yes console=ttyS0,9600 console=tty0"' |
| kernelParameters: |
| sysctl: |
| kernel.dmesg_restrict: "1" |
| kernel.core_uses_pid: "1" |
| fs.file-max: "9223372036854775807" |
| fs.aio-max-nr: "1048576" |
| fs.inotify.max_user_instances: "4096" |
| vm.max_map_count: "262144" |
| net.ipv4.conf.all.rp_filter: "2" |
| net.ipv4.conf.k8s-lcm.rp_filter: "2" |
| net.ipv4.conf.bond0.rp_filter: "2" |
| fs.inotify.max_user_watches: "81920" |
| modules: |
| - filename: kvm_intel.conf |
| content: | |
| options kvm_intel nested=1 |
| --- |
| apiVersion: metal3.io/v1alpha1 |
| metadata: |
| namespace: mosk |
| name: bm-storage |
| labels: |
| cluster.sigs.k8s.io/cluster-name: mosk |
| kaas.mirantis.com/provider: "baremetal" |
| kind: BareMetalHostProfile |
| spec: |
| devices: |
| - device: |
| workBy: "by_id,by_path,by_wwn,by_name" |
| byPath: /dev/disk/by-path/pci-0000:00:1f.2-ata-1 |
| minSize: 60Gi |
| wipeDevice: |
| eraseMetadata: |
| enabled: true |
| partitions: |
| - name: bios_grub |
| size: 4Mi |
| partflags: ['bios_grub'] |
| - name: uefi |
| partflags: ['esp'] |
| size: 200Mi |
| - name: config-2 |
| size: 64Mi |
| - name: root |
| size: 0 |
| - device: |
| workBy: "by_id,by_path,by_wwn,by_name" |
| byPath: /dev/disk/by-path/pci-0000:00:1f.2-ata-2 |
| wipe: true |
| fileSystems: |
| - fileSystem: vfat |
| partition: config-2 |
| - fileSystem: vfat |
| partition: uefi |
| mountPoint: /boot/efi |
| - fileSystem: ext4 |
| partition: root |
| mountPoint: / |
| mountOpts: 'rw,noatime,nodiratime,lazytime,nobarrier,commit=240,data=ordered' |
| |
| preDeployScript: | |
| #!/bin/bash -ex |
| echo $(date) 'pre_deploy_script done' >> /root/pre_deploy_done |
| postDeployScript: | |
| #!/bin/bash -ex |
| # used for test-debug only! |
| echo -e "root:r00tme" | sudo chpasswd |
| echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"' > /etc/udev/rules.d/60-ssd-scheduler.rules |
| echo $(date) 'post_deploy_script done' >> /root/post_deploy_done |
| grubConfig: |
| defaultGrubOptions: |
| - 'GRUB_DISABLE_RECOVERY="true"' |
| - 'GRUB_PRELOAD_MODULES=lvm' |
| - 'GRUB_TIMEOUT=20' |
| - 'GRUB_CMDLINE_LINUX="noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off systemd.journald.forward_to_console=yes console=ttyS0,9600 console=tty0"' |
| kernelParameters: |
| sysctl: |
| kernel.dmesg_restrict: "1" |
| kernel.core_uses_pid: "1" |
| fs.file-max: "9223372036854775807" |
| fs.aio-max-nr: "1048576" |
| fs.inotify.max_user_instances: "4096" |
| vm.max_map_count: "262144" |
| net.ipv4.conf.all.rp_filter: "2" |
| net.ipv4.conf.k8s-lcm.rp_filter: "2" |
| net.ipv4.conf.bond0.rp_filter: "2" |
| fs.inotify.max_user_watches: "81920" |
| modules: |
| - filename: kvm_intel.conf |
| content: | |
| options kvm_intel nested=1 |
| --- |
| apiVersion: metal3.io/v1alpha1 |
| metadata: |
| namespace: mosk |
| name: bm-sl |
| labels: |
| cluster.sigs.k8s.io/cluster-name: mosk |
| kaas.mirantis.com/provider: "baremetal" |
| kind: BareMetalHostProfile |
| spec: |
| devices: |
| - device: |
| workBy: "by_id,by_path,by_wwn,by_name" |
| byPath: /dev/disk/by-path/pci-0000:00:1f.2-ata-1 |
| minSize: 60Gi |
| wipeDevice: |
| eraseMetadata: |
| enabled: true |
| partitions: |
| - name: bios_grub |
| size: 4Mi |
| partflags: ['bios_grub'] |
| - name: uefi |
| partflags: ['esp'] |
| size: 200Mi |
| - name: config-2 |
| size: 64Mi |
| - name: root |
| size: 0 |
| - device: |
| workBy: "by_id,by_path,by_wwn,by_name" |
| byPath: /dev/disk/by-path/pci-0000:00:1f.2-ata-2 |
| wipe: true |
| fileSystems: |
| - fileSystem: vfat |
| partition: config-2 |
| - fileSystem: vfat |
| partition: uefi |
| mountPoint: /boot/efi |
| - fileSystem: ext4 |
| partition: root |
| mountPoint: / |
| mountOpts: 'rw,noatime,nodiratime,lazytime,nobarrier,commit=240,data=ordered' |
| |
| preDeployScript: | |
| #!/bin/bash -ex |
| echo $(date) 'pre_deploy_script done' >> /root/pre_deploy_done |
| postDeployScript: | |
| #!/bin/bash -ex |
| # used for test-debug only! |
| echo -e "root:r00tme" | sudo chpasswd |
| echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"' > /etc/udev/rules.d/60-ssd-scheduler.rules |
| echo $(date) 'post_deploy_script done' >> /root/post_deploy_done |
| grubConfig: |
| defaultGrubOptions: |
| - 'GRUB_DISABLE_RECOVERY="true"' |
| - 'GRUB_PRELOAD_MODULES=lvm' |
| - 'GRUB_TIMEOUT=20' |
| - 'GRUB_CMDLINE_LINUX="noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off systemd.journald.forward_to_console=yes console=ttyS0,9600 console=tty0"' |
| kernelParameters: |
| sysctl: |
| kernel.dmesg_restrict: "1" |
| kernel.core_uses_pid: "1" |
| fs.file-max: "9223372036854775807" |
| fs.aio-max-nr: "1048576" |
| fs.inotify.max_user_instances: "4096" |
| vm.max_map_count: "262144" |
| net.ipv4.conf.all.rp_filter: "2" |
| net.ipv4.conf.k8s-lcm.rp_filter: "2" |
| net.ipv4.conf.bond0.rp_filter: "2" |
| fs.inotify.max_user_watches: "81920" |
| --- |
| apiVersion: metal3.io/v1alpha1 |
| metadata: |
| namespace: mosk |
| name: bm-os-ctl |
| labels: |
| cluster.sigs.k8s.io/cluster-name: mosk |
| kaas.mirantis.com/provider: "baremetal" |
| kind: BareMetalHostProfile |
| spec: |
| devices: |
| - device: |
| workBy: "by_id,by_path,by_wwn,by_name" |
| byPath: /dev/disk/by-path/pci-0000:00:1f.2-ata-1 |
| minSize: 60Gi |
| wipeDevice: |
| eraseMetadata: |
| enabled: true |
| partitions: |
| - name: bios_grub |
| size: 4Mi |
| partflags: ['bios_grub'] |
| - name: uefi |
| partflags: ['esp'] |
| size: 200Mi |
| - name: config-2 |
| size: 64Mi |
| - name: root |
| size: 0 |
| - device: |
| workBy: "by_id,by_path,by_wwn,by_name" |
| byPath: /dev/disk/by-path/pci-0000:00:1f.2-ata-2 |
| wipe: true |
| fileSystems: |
| - fileSystem: vfat |
| partition: config-2 |
| - fileSystem: vfat |
| partition: uefi |
| mountPoint: /boot/efi |
| - fileSystem: ext4 |
| partition: root |
| mountPoint: / |
| mountOpts: 'rw,noatime,nodiratime,lazytime,nobarrier,commit=240,data=ordered' |
| |
| preDeployScript: | |
| #!/bin/bash -ex |
| echo $(date) 'pre_deploy_script done' >> /root/pre_deploy_done |
| postDeployScript: | |
| #!/bin/bash -ex |
| # used for test-debug only! |
| echo -e "root:r00tme" | sudo chpasswd |
| echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"' > /etc/udev/rules.d/60-ssd-scheduler.rules |
| echo $(date) 'post_deploy_script done' >> /root/post_deploy_done |
| grubConfig: |
| defaultGrubOptions: |
| - 'GRUB_DISABLE_RECOVERY="true"' |
| - 'GRUB_PRELOAD_MODULES=lvm' |
| - 'GRUB_TIMEOUT=20' |
| - 'GRUB_CMDLINE_LINUX="noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off systemd.journald.forward_to_console=yes console=ttyS0,9600 console=tty0"' |
| kernelParameters: |
| sysctl: |
| kernel.dmesg_restrict: "1" |
| kernel.core_uses_pid: "1" |
| fs.file-max: "9223372036854775807" |
| fs.aio-max-nr: "1048576" |
| fs.inotify.max_user_instances: "4096" |
| vm.max_map_count: "262144" |
| net.ipv4.conf.all.rp_filter: "2" |
| net.ipv4.conf.k8s-lcm.rp_filter: "2" |
| net.ipv4.conf.bond0.rp_filter: "2" |
| fs.inotify.max_user_watches: "81920" |
| --- |
| apiVersion: metal3.io/v1alpha1 |
| metadata: |
| namespace: mosk |
| name: bm-os-cmp |
| labels: |
| cluster.sigs.k8s.io/cluster-name: mosk |
| kaas.mirantis.com/provider: "baremetal" |
| kind: BareMetalHostProfile |
| spec: |
| devices: |
| - device: |
| workBy: "by_id,by_path,by_wwn,by_name" |
| byPath: /dev/disk/by-path/pci-0000:00:1f.2-ata-1 |
| minSize: 60Gi |
| wipeDevice: |
| eraseMetadata: |
| enabled: true |
| partitions: |
| - name: bios_grub |
| size: 4Mi |
| partflags: ['bios_grub'] |
| - name: uefi |
| partflags: ['esp'] |
| size: 200Mi |
| - name: config-2 |
| size: 64Mi |
| - name: root |
| size: 0 |
| - device: |
| workBy: "by_id,by_path,by_wwn,by_name" |
| byPath: /dev/disk/by-path/pci-0000:00:1f.2-ata-2 |
| wipe: true |
| fileSystems: |
| - fileSystem: vfat |
| partition: config-2 |
| - fileSystem: vfat |
| partition: uefi |
| mountPoint: /boot/efi |
| - fileSystem: ext4 |
| partition: root |
| mountPoint: / |
| mountOpts: 'rw,noatime,nodiratime,lazytime,nobarrier,commit=240,data=ordered' |
| |
| preDeployScript: | |
| #!/bin/bash -ex |
| echo $(date) 'pre_deploy_script done' >> /root/pre_deploy_done |
| postDeployScript: | |
| #!/bin/bash -ex |
| # used for test-debug only! |
| echo -e "root:r00tme" | sudo chpasswd |
| echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"' > /etc/udev/rules.d/60-ssd-scheduler.rules |
| echo $(date) 'post_deploy_script done' >> /root/post_deploy_done |
| grubConfig: |
| defaultGrubOptions: |
| - 'GRUB_DISABLE_RECOVERY="true"' |
| - 'GRUB_PRELOAD_MODULES=lvm' |
| - 'GRUB_TIMEOUT=20' |
| - 'GRUB_CMDLINE_LINUX="noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off systemd.journald.forward_to_console=yes console=ttyS0,9600 console=tty0"' |
| kernelParameters: |
| sysctl: |
| kernel.dmesg_restrict: "1" |
| kernel.core_uses_pid: "1" |
| fs.file-max: "9223372036854775807" |
| fs.aio-max-nr: "1048576" |
| fs.inotify.max_user_instances: "4096" |
| vm.max_map_count: "262144" |
| net.ipv4.conf.all.rp_filter: "2" |
| net.ipv4.conf.k8s-lcm.rp_filter: "2" |
| net.ipv4.conf.bond0.rp_filter: "2" |
| fs.inotify.max_user_watches: "81920" |
| --- |