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

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

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

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


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

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')
    }
}