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