Puppet Class: profile::wmcs::kubeadm::preflight_checks

Defined in:
modules/profile/manifests/wmcs/kubeadm/preflight_checks.pp

Overview

Parameters:

  • swap (Boolean) (defaults to: lookup('swap_partition', {default_value => true}))


1
2
3
4
5
6
7
8
9
# File 'modules/profile/manifests/wmcs/kubeadm/preflight_checks.pp', line 1

class profile::wmcs::kubeadm::preflight_checks (
    Boolean $swap = lookup('swap_partition', {default_value => true}),
) {
    # kubeadm preflight checks:
    # Ncpu should be >= 2
    if $facts['processorcount'] < 2 {
        fail('Please apply this profile into a VM with nCPU >= 2')
    }
}