Resource Type: kubeadm_token

Defined in:
lib/puppet/type/kubeadm_token.rb
Providers:
kubeadm

Overview

Bootstrap tokens are a simple bearer token that is meant to be used when creating new clusters or joining new nodes to an existing cluster

Properties

  • auth_extra_groups

    Extra groups to authenticate the token as

    Supported values:
    • %r{^system:bootstrappers:[a-z0-9:-]{0,255}[a-z0-9]$}
  • description

    Human readable description

  • ensure (defaults to: present)

    Create or remove token.

    Supported values:
    • present
    • absent
  • id

    Token ID

    Supported values:
    • %r{^[a-z0-9]{6}$}
  • secret

    Token Secret

    Supported values:
    • %r{^[a-z0-9]{6}$}
  • ttl (defaults to: 24h0m0s)

    Controls the expiry of the token

    Supported values:
    • %r{^([0-9]+h)?([1-5]?[0-9]m)?([1-5]?[0-9]s)?$}
    • 0
    • 0

Parameters

  • bootstrap_authentication (defaults to: true)

    Indicates that the token can be used to authenticate to the API server as a bearer token

    Supported values:
    • true
    • false
    • yes
    • no
  • bootstrap_signing (defaults to: true)

    Indicates that the token may be used to sign the cluster-info ConfigMap

    Supported values:
    • true
    • false
    • yes
    • no
  • name (namevar)

    Token Name

    Supported values:
    • %r{^(bootstrap-token-)?[a-z0-9]{6}$}
    • default
  • provider

    The specific backend to use for this ‘kubeadm_token` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.