Puppet Class: k8s::controller

Defined in:
modules/k8s/manifests/controller.pp

Overview

Parameters:

  • service_account_private_key_file (Optional[String]) (defaults to: undef)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'modules/k8s/manifests/controller.pp', line 1

class k8s::controller(
    Optional[String] $service_account_private_key_file=undef,
){

    require_package('kubernetes-master')

    file { '/etc/default/kube-controller-manager':
        ensure  => file,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => template('k8s/kube-controller-manager.default.erb'),
        notify  => Service['kube-controller-manager'],
    }

    service { 'kube-controller-manager':
        ensure => running,
        enable => true,
    }
}