Puppet Class: toolforge::k8s::config

Defined in:
modules/toolforge/manifests/k8s/config.pp

Overview

toolforge specific config for our kubeadm-based k8s deployment



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'modules/toolforge/manifests/k8s/config.pp', line 2

class toolforge::k8s::config (
) {
    # make sure you declare ::kubeadm::core somewhere in the calling profile
    # because /etc/kubernetes

    file { '/etc/kubernetes/toolforge-tool-roles.yaml':
        ensure  => present,
        source  => 'puppet:///modules/toolforge/k8s/toolforge-tool-roles.yaml',
        owner   => 'root',
        group   => 'root',
        mode    => '0400',
        require => File['/etc/kubernetes'],
    }
}