Puppet Class: toolforge::k8s::nginx_ingress_yaml

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

Overview

Parameters:

  • ingress_replicas (Integer) (defaults to: 2)


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

class toolforge::k8s::nginx_ingress_yaml (
    Integer $ingress_replicas = 2,
) {
    # ::kubeadm::helm is practically a dependency, but it's required in
    # the relevant profile to avoid style guide violations

    # make sure you declare ::kubeadm::core somewhere in the calling profile
    # because /etc/kubernetes

    file { '/etc/kubernetes/nginx-ingress-helm-values.yaml':
        ensure  => present,
        content => template('toolforge/k8s/nginx-ingress-helm-values.yaml.erb'),
        require => File['/etc/kubernetes'],
    }
}