Forge Home

tarmak

Install/configure a Kubernetes cluster

16,974 downloads

6,272 latest version

4.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.5.0-alpha2 (latest)
  • 0.5.0-alpha1
  • 0.4.1
  • 0.4.1-rc1 (pre-release)
  • 0.4.0
  • 0.4.0-rc4 (pre-release)
  • 0.4.0-rc3 (pre-release)
  • 0.4.0-rc2 (pre-release)
  • 0.4.0-rc1 (pre-release)
  • 0.3.0
  • 0.3.0-rc5 (pre-release)
  • 0.3.0-rc4 (pre-release)
  • 0.2.1
  • 0.2.0
  • 0.2.0-rc5 (pre-release)
  • 0.2.0-rc3 (pre-release)
  • 0.2.0-rc2 (pre-release)
  • 0.1.2
  • 0.1.2-rc3 (pre-release)
  • 0.1.2-rc2 (pre-release)
released Aug 24th 2018

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'jetstack-tarmak', '0.5.0-alpha2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jetstack-tarmak
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jetstack-tarmak --version 0.5.0-alpha2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

jetstack/tarmak — version 0.5.0-alpha2 Aug 24th 2018

tarmak

Table of Contents

  1. Description
  2. Classes

Description

This module is part of Tarmak and should currently be considered alpha.

Travis

Classes

tarmak

Tarmak

This is the top-level class for the tarmak project. It's not including any component. It's just setting global variables for the cluster

Parameters

dest_dir
  • path to installation directory for components
  • Type: String
  • Default: '/opt'
bin_dir
  • path to the binary directory for components
  • Type: String
  • Default: '/opt/bin'
cluster_name
  • a DNS compatible name for the cluster
  • Type: String
  • Default: $tarmak::params::cluster_name
systemctl_path
  • absoulute path to systemctl binary
  • Type: String
  • Default: $tarmak::params::systemctl_path
role
  • which role to build
  • Type: Enum['etcd','master','worker', nil]
  • Default: nil
kubernetes_version
  • Kubernetes version to install
  • Type: String
  • Default: $tarmak::params::kubernetes_version
kubernetes_user
  • Type: String
  • Default: 'kubernetes'
kubernetes_group
  • Type: String
  • Default: 'kubernetes'
kubernetes_uid
  • Type: Integer
  • Default: 837
kubernetes_gid
  • Type: Integer
  • Default: 837
kubernetes_ca_name
  • Type: String
  • Default: 'k8s'
kubernetes_ssl_dir
  • Type: String
  • Default: '/etc/kubernetes/ssl'
kubernetes_config_dir
  • Type: String
  • Default: '/etc/kubernetes'
kubernetes_api_insecure_port
  • Type: Integer[1,65535]
  • Default: 6443
kubernetes_api_secure_port
  • Type: Integer[1,65535]
  • Default: 8080
kubernetes_pod_network
  • Type: String
  • Default: '10.234.0.0/16'
kubernetes_api_url
  • Type: String
  • Default: nil
kubernetes_api_prefix
  • Type: String
  • Default: 'api'
kubernetes_authorization_mode
  • Type: Array[Enum['AlwaysAllow', 'ABAC', 'RBAC']]
  • Default: []
dns_root
  • Type: String
  • Default: $tarmak::params::dns_root
hostname
  • Type: String
  • Default: $tarmak::params::hostname
etcd_cluster
  • Type: Array[String]
  • Default: []
etcd_start_index
  • Type: Integer[0,1]
  • Default: 1
etcd_user
  • Type: String
  • Default: 'etcd'
etcd_group
  • Type: String
  • Default: 'etcd'
etcd_uid
  • Type: Integer
  • Default: 873
etcd_gid
  • Type: Integer
  • Default: 873
etcd_home
  • Type: String
  • Default: '/etc/etcd'
etcd_ssl_dir
  • Type: String
  • Default: '/etc/etcd/ssl'
etcd_instances
  • Type: Integer
  • Default: 3
etcd_advertise_client_network
  • Type: String
  • Default: $tarmak::params::etcd_advertise_client_network
etcd_overlay_client_port
  • Type: Integer[1,65535]
  • Default: 2359
etcd_overlay_peer_port
  • Type: Integer[1,65535]
  • Default: 2360
etcd_overlay_ca_name
  • Type: String
  • Default: 'etcd-overlay'
etcd_overlay_version
  • Type: String
  • Default: '3.2.17'
etcd_k8s_main_client_port
  • Type: Integer[1,65535]
  • Default: 2379
etcd_k8s_main_peer_port
  • Type: Integer[1,65535]
  • Default: 2380
etcd_k8s_main_ca_name
  • Type: String
  • Default: 'etcd-k8s'
etcd_k8s_main_version
  • Type: String
  • Default: '3.2.17'
etcd_k8s_events_client_port
  • Type: Integer[1,65535]
  • Default: 2369
etcd_k8s_events_peer_port
  • Type: Integer[1,65535]
  • Default: 2370
etcd_k8s_events_ca_name
  • Type: String
  • Default: 'etcd-k8s'
etcd_k8s_events_version
  • Type: String
  • Default: '3.2.17'
cloud_provider
  • Type: Enum['aws', '']
  • Default: ''
helper_path
  • Type: String
  • Default: $tarmak::params::helper_path
systemd_dir
  • Type: String
  • Default: '/etc/systemd/system'

Examples

Declaring the class
include ::tarmak
Overriding the kubernetes version
class{'tarmak':
  kubernetes_version => '1.5.4'
}

tarmak::etcd

tarmak::master

Parameters

disable_kubelet
  • Type: Any
  • Default: true
disable_proxy
  • Type: Any
  • Default: true

tarmak::overlay_calico

tarmak::params

Defines parameters for other classes to reuse

tarmak::single_node

Parameters

dns_root
  • Type: String
  • Default: $tarmak::params::dns_root
cluster_name
  • Type: String
  • Default: $tarmak::params::cluster_name
etcd_advertise_client_network
  • Type: String
  • Default: $tarmak::params::etcd_advertise_client_network
kubernetes_api_url
  • Type: String
  • Default: nil
kubernetes_version
  • Type: String
  • Default: $tarmak::params::kubernetes_version
kubernetes_authorization_mode
  • Type: Array[Enum['AlwaysAllow', 'ABAC', 'RBAC']]
  • Default: []

tarmak::worker