Defined Type: k8s::kubelet::cni

Defined in:
modules/k8s/manifests/kubelet/cni.pp

Overview

SPDX-License-Identifier: Apache-2.0

Class k8s::kubelet::cni

Installs and configures a CNI config file, that can be composed by multiple plugins. The related Kubeconfigs for users need to be deployed separately.

Parameters:

  • config (Hash)
  • priority (Integer)


7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/k8s/manifests/kubelet/cni.pp', line 7

define k8s::kubelet::cni (
    Hash $config,
    Integer $priority,
) {
    require k8s::kubelet::cni::base

    file { "/etc/cni/net.d/${priority}-${title}.conflist":
        content => template('k8s/kubelet/cni.conf.erb'),
        owner   => 'root',
        group   => 'root',
        mode    => '0755',
    }
}