| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 1 | --- |
| 2 | apiVersion: metal3.io/v1alpha1 |
| 3 | metadata: |
| 4 | namespace: mosk |
| 5 | name: ucp-ctl |
| 6 | labels: |
| 7 | cluster.sigs.k8s.io/cluster-name: mosk |
| 8 | kaas.mirantis.com/provider: "baremetal" |
| 9 | kaas.mirantis.com/defaultBMHProfile: 'true' |
| 10 | kind: BareMetalHostProfile |
| 11 | spec: |
| 12 | devices: |
| 13 | - device: |
| 14 | workBy: "by_id,by_path,by_wwn,by_name" |
| 15 | minSize: 60Gi |
| 16 | wipeDevice: |
| 17 | eraseMetadata: |
| 18 | enabled: true |
| 19 | partitions: |
| 20 | - name: bios_grub |
| 21 | size: 4Mi |
| 22 | partflags: ['bios_grub'] |
| 23 | - name: uefi |
| 24 | partflags: ['esp'] |
| 25 | size: 200Mi |
| 26 | - name: config-2 |
| 27 | size: 64Mi |
| 28 | - name: root |
| 29 | size: 0 |
| 30 | fileSystems: |
| 31 | - fileSystem: vfat |
| 32 | partition: config-2 |
| 33 | - fileSystem: vfat |
| 34 | partition: uefi |
| 35 | mountPoint: /boot/efi |
| 36 | - fileSystem: ext4 |
| 37 | partition: root |
| 38 | mountPoint: / |
| 39 | mountOpts: 'rw,noatime,nodiratime,lazytime,nobarrier,commit=240,data=ordered' |
| 40 | |
| 41 | preDeployScript: | |
| 42 | #!/bin/bash -ex |
| 43 | echo $(date) 'pre_deploy_script done' >> /root/pre_deploy_done |
| 44 | postDeployScript: | |
| 45 | #!/bin/bash -ex |
| 46 | # used for test-debug only! |
| 47 | echo -e "root:r00tme" | sudo chpasswd |
| 48 | echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"' > /etc/udev/rules.d/60-ssd-scheduler.rules |
| 49 | echo $(date) 'post_deploy_script done' >> /root/post_deploy_done |
| 50 | grubConfig: |
| 51 | defaultGrubOptions: |
| 52 | - 'GRUB_DISABLE_RECOVERY="true"' |
| 53 | - 'GRUB_PRELOAD_MODULES=lvm' |
| 54 | - 'GRUB_TIMEOUT=20' |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 55 | - '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 "' |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 56 | kernelParameters: |
| 57 | sysctl: |
| 58 | kernel.dmesg_restrict: "1" |
| 59 | kernel.core_uses_pid: "1" |
| 60 | fs.file-max: "9223372036854775807" |
| 61 | fs.aio-max-nr: "1048576" |
| 62 | fs.inotify.max_user_instances: "4096" |
| 63 | vm.max_map_count: "262144" |
| 64 | net.ipv4.conf.all.rp_filter: "2" |
| 65 | net.ipv4.conf.k8s-lcm.rp_filter: "2" |
| 66 | net.ipv4.conf.bond0.rp_filter: "2" |
| 67 | fs.inotify.max_user_watches: "81920" |
| 68 | modules: |
| 69 | - filename: kvm_intel.conf |
| 70 | content: | |
| 71 | options kvm_intel nested=1 |
| 72 | --- |
| 73 | apiVersion: metal3.io/v1alpha1 |
| 74 | metadata: |
| 75 | namespace: mosk |
| 76 | name: bm-storage |
| 77 | labels: |
| 78 | cluster.sigs.k8s.io/cluster-name: mosk |
| 79 | kaas.mirantis.com/provider: "baremetal" |
| 80 | kind: BareMetalHostProfile |
| 81 | spec: |
| 82 | devices: |
| 83 | - device: |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 84 | hctl: "4:0:0:0" |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 85 | minSize: 60Gi |
| 86 | wipeDevice: |
| 87 | eraseMetadata: |
| 88 | enabled: true |
| 89 | partitions: |
| 90 | - name: bios_grub |
| 91 | size: 4Mi |
| 92 | partflags: ['bios_grub'] |
| 93 | - name: uefi |
| 94 | partflags: ['esp'] |
| 95 | size: 200Mi |
| 96 | - name: config-2 |
| 97 | size: 64Mi |
| 98 | - name: root |
| 99 | size: 0 |
| 100 | - device: |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 101 | hctl: "5:0:0:0" |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 102 | wipe: true |
| 103 | fileSystems: |
| 104 | - fileSystem: vfat |
| 105 | partition: config-2 |
| 106 | - fileSystem: vfat |
| 107 | partition: uefi |
| 108 | mountPoint: /boot/efi |
| 109 | - fileSystem: ext4 |
| 110 | partition: root |
| 111 | mountPoint: / |
| 112 | mountOpts: 'rw,noatime,nodiratime,lazytime,nobarrier,commit=240,data=ordered' |
| 113 | |
| 114 | preDeployScript: | |
| 115 | #!/bin/bash -ex |
| 116 | echo $(date) 'pre_deploy_script done' >> /root/pre_deploy_done |
| 117 | postDeployScript: | |
| 118 | #!/bin/bash -ex |
| 119 | # used for test-debug only! |
| 120 | echo -e "root:r00tme" | sudo chpasswd |
| 121 | echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"' > /etc/udev/rules.d/60-ssd-scheduler.rules |
| 122 | echo $(date) 'post_deploy_script done' >> /root/post_deploy_done |
| 123 | grubConfig: |
| 124 | defaultGrubOptions: |
| 125 | - 'GRUB_DISABLE_RECOVERY="true"' |
| 126 | - 'GRUB_PRELOAD_MODULES=lvm' |
| 127 | - 'GRUB_TIMEOUT=20' |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 128 | - 'GRUB_CMDLINE_LINUX="intel_iommu=on 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"' |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 129 | kernelParameters: |
| 130 | sysctl: |
| 131 | kernel.dmesg_restrict: "1" |
| 132 | kernel.core_uses_pid: "1" |
| 133 | fs.file-max: "9223372036854775807" |
| 134 | fs.aio-max-nr: "1048576" |
| 135 | fs.inotify.max_user_instances: "4096" |
| 136 | vm.max_map_count: "262144" |
| 137 | net.ipv4.conf.all.rp_filter: "2" |
| 138 | net.ipv4.conf.k8s-lcm.rp_filter: "2" |
| 139 | net.ipv4.conf.bond0.rp_filter: "2" |
| 140 | fs.inotify.max_user_watches: "81920" |
| 141 | modules: |
| 142 | - filename: kvm_intel.conf |
| 143 | content: | |
| 144 | options kvm_intel nested=1 |
| 145 | --- |
| 146 | apiVersion: metal3.io/v1alpha1 |
| 147 | metadata: |
| 148 | namespace: mosk |
| 149 | name: bm-sl |
| 150 | labels: |
| 151 | cluster.sigs.k8s.io/cluster-name: mosk |
| 152 | kaas.mirantis.com/provider: "baremetal" |
| 153 | kind: BareMetalHostProfile |
| 154 | spec: |
| 155 | devices: |
| 156 | - device: |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 157 | hctl: "4:0:0:0" |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 158 | minSize: 60Gi |
| 159 | wipeDevice: |
| 160 | eraseMetadata: |
| 161 | enabled: true |
| 162 | partitions: |
| 163 | - name: bios_grub |
| 164 | size: 4Mi |
| 165 | partflags: ['bios_grub'] |
| 166 | - name: uefi |
| 167 | partflags: ['esp'] |
| 168 | size: 200Mi |
| 169 | - name: config-2 |
| 170 | size: 64Mi |
| 171 | - name: root |
| 172 | size: 0 |
| 173 | - device: |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 174 | hctl: "5:0:0:0" |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 175 | wipe: true |
| 176 | fileSystems: |
| 177 | - fileSystem: vfat |
| 178 | partition: config-2 |
| 179 | - fileSystem: vfat |
| 180 | partition: uefi |
| 181 | mountPoint: /boot/efi |
| 182 | - fileSystem: ext4 |
| 183 | partition: root |
| 184 | mountPoint: / |
| 185 | mountOpts: 'rw,noatime,nodiratime,lazytime,nobarrier,commit=240,data=ordered' |
| 186 | |
| 187 | preDeployScript: | |
| 188 | #!/bin/bash -ex |
| 189 | echo $(date) 'pre_deploy_script done' >> /root/pre_deploy_done |
| 190 | postDeployScript: | |
| 191 | #!/bin/bash -ex |
| 192 | # used for test-debug only! |
| 193 | echo -e "root:r00tme" | sudo chpasswd |
| 194 | echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"' > /etc/udev/rules.d/60-ssd-scheduler.rules |
| 195 | echo $(date) 'post_deploy_script done' >> /root/post_deploy_done |
| 196 | grubConfig: |
| 197 | defaultGrubOptions: |
| 198 | - 'GRUB_DISABLE_RECOVERY="true"' |
| 199 | - 'GRUB_PRELOAD_MODULES=lvm' |
| 200 | - 'GRUB_TIMEOUT=20' |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 201 | - 'GRUB_CMDLINE_LINUX="intel_iommu=on 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"' |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 202 | kernelParameters: |
| 203 | sysctl: |
| 204 | kernel.dmesg_restrict: "1" |
| 205 | kernel.core_uses_pid: "1" |
| 206 | fs.file-max: "9223372036854775807" |
| 207 | fs.aio-max-nr: "1048576" |
| 208 | fs.inotify.max_user_instances: "4096" |
| 209 | vm.max_map_count: "262144" |
| 210 | net.ipv4.conf.all.rp_filter: "2" |
| 211 | net.ipv4.conf.k8s-lcm.rp_filter: "2" |
| 212 | net.ipv4.conf.bond0.rp_filter: "2" |
| 213 | fs.inotify.max_user_watches: "81920" |
| 214 | --- |
| 215 | apiVersion: metal3.io/v1alpha1 |
| 216 | metadata: |
| 217 | namespace: mosk |
| 218 | name: bm-os-ctl |
| 219 | labels: |
| 220 | cluster.sigs.k8s.io/cluster-name: mosk |
| 221 | kaas.mirantis.com/provider: "baremetal" |
| 222 | kind: BareMetalHostProfile |
| 223 | spec: |
| 224 | devices: |
| 225 | - device: |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 226 | hctl: "4:0:0:0" |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 227 | minSize: 60Gi |
| 228 | wipeDevice: |
| 229 | eraseMetadata: |
| 230 | enabled: true |
| 231 | partitions: |
| 232 | - name: bios_grub |
| 233 | size: 4Mi |
| 234 | partflags: ['bios_grub'] |
| 235 | - name: uefi |
| 236 | partflags: ['esp'] |
| 237 | size: 200Mi |
| 238 | - name: config-2 |
| 239 | size: 64Mi |
| 240 | - name: root |
| 241 | size: 0 |
| 242 | - device: |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 243 | hctl: "5:0:0:0" |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 244 | wipe: true |
| 245 | fileSystems: |
| 246 | - fileSystem: vfat |
| 247 | partition: config-2 |
| 248 | - fileSystem: vfat |
| 249 | partition: uefi |
| 250 | mountPoint: /boot/efi |
| 251 | - fileSystem: ext4 |
| 252 | partition: root |
| 253 | mountPoint: / |
| 254 | mountOpts: 'rw,noatime,nodiratime,lazytime,nobarrier,commit=240,data=ordered' |
| 255 | |
| 256 | preDeployScript: | |
| 257 | #!/bin/bash -ex |
| 258 | echo $(date) 'pre_deploy_script done' >> /root/pre_deploy_done |
| 259 | postDeployScript: | |
| 260 | #!/bin/bash -ex |
| 261 | # used for test-debug only! |
| 262 | echo -e "root:r00tme" | sudo chpasswd |
| 263 | echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"' > /etc/udev/rules.d/60-ssd-scheduler.rules |
| 264 | echo $(date) 'post_deploy_script done' >> /root/post_deploy_done |
| 265 | grubConfig: |
| 266 | defaultGrubOptions: |
| 267 | - 'GRUB_DISABLE_RECOVERY="true"' |
| 268 | - 'GRUB_PRELOAD_MODULES=lvm' |
| 269 | - 'GRUB_TIMEOUT=20' |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 270 | - 'GRUB_CMDLINE_LINUX="intel_iommu=on 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"' |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 271 | kernelParameters: |
| 272 | sysctl: |
| 273 | kernel.dmesg_restrict: "1" |
| 274 | kernel.core_uses_pid: "1" |
| 275 | fs.file-max: "9223372036854775807" |
| 276 | fs.aio-max-nr: "1048576" |
| 277 | fs.inotify.max_user_instances: "4096" |
| 278 | vm.max_map_count: "262144" |
| 279 | net.ipv4.conf.all.rp_filter: "2" |
| 280 | net.ipv4.conf.k8s-lcm.rp_filter: "2" |
| 281 | net.ipv4.conf.bond0.rp_filter: "2" |
| 282 | fs.inotify.max_user_watches: "81920" |
| 283 | --- |
| 284 | apiVersion: metal3.io/v1alpha1 |
| 285 | metadata: |
| 286 | namespace: mosk |
| 287 | name: bm-os-cmp |
| 288 | labels: |
| 289 | cluster.sigs.k8s.io/cluster-name: mosk |
| 290 | kaas.mirantis.com/provider: "baremetal" |
| 291 | kind: BareMetalHostProfile |
| 292 | spec: |
| 293 | devices: |
| 294 | - device: |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 295 | hctl: "4:0:0:0" |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 296 | minSize: 60Gi |
| 297 | wipeDevice: |
| 298 | eraseMetadata: |
| 299 | enabled: true |
| 300 | partitions: |
| 301 | - name: bios_grub |
| 302 | size: 4Mi |
| 303 | partflags: ['bios_grub'] |
| 304 | - name: uefi |
| 305 | partflags: ['esp'] |
| 306 | size: 200Mi |
| 307 | - name: config-2 |
| 308 | size: 64Mi |
| 309 | - name: root |
| 310 | size: 0 |
| 311 | - device: |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 312 | hctl: "5:0:0:0" |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 313 | wipe: true |
| 314 | fileSystems: |
| 315 | - fileSystem: vfat |
| 316 | partition: config-2 |
| 317 | - fileSystem: vfat |
| 318 | partition: uefi |
| 319 | mountPoint: /boot/efi |
| 320 | - fileSystem: ext4 |
| 321 | partition: root |
| 322 | mountPoint: / |
| 323 | mountOpts: 'rw,noatime,nodiratime,lazytime,nobarrier,commit=240,data=ordered' |
| 324 | |
| 325 | preDeployScript: | |
| 326 | #!/bin/bash -ex |
| 327 | echo $(date) 'pre_deploy_script done' >> /root/pre_deploy_done |
| 328 | postDeployScript: | |
| 329 | #!/bin/bash -ex |
| 330 | # used for test-debug only! |
| 331 | echo -e "root:r00tme" | sudo chpasswd |
| 332 | echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"' > /etc/udev/rules.d/60-ssd-scheduler.rules |
| 333 | echo $(date) 'post_deploy_script done' >> /root/post_deploy_done |
| 334 | grubConfig: |
| 335 | defaultGrubOptions: |
| 336 | - 'GRUB_DISABLE_RECOVERY="true"' |
| 337 | - 'GRUB_PRELOAD_MODULES=lvm' |
| 338 | - 'GRUB_TIMEOUT=20' |
| Vladimir Khlyunev | 4de4160 | 2024-12-10 16:25:15 +0300 | [diff] [blame^] | 339 | - 'GRUB_CMDLINE_LINUX="intel_iommu=on 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"' |
| Vladimir Khlyunev | cc648af | 2024-04-25 19:56:40 +0400 | [diff] [blame] | 340 | kernelParameters: |
| 341 | sysctl: |
| 342 | kernel.dmesg_restrict: "1" |
| 343 | kernel.core_uses_pid: "1" |
| 344 | fs.file-max: "9223372036854775807" |
| 345 | fs.aio-max-nr: "1048576" |
| 346 | fs.inotify.max_user_instances: "4096" |
| 347 | vm.max_map_count: "262144" |
| 348 | net.ipv4.conf.all.rp_filter: "2" |
| 349 | net.ipv4.conf.k8s-lcm.rp_filter: "2" |
| 350 | net.ipv4.conf.bond0.rp_filter: "2" |
| 351 | fs.inotify.max_user_watches: "81920" |
| 352 | --- |