Resource Type: kubeconfig
Overview
Example:
kubeconfig { ‘/var/lib/kubernetes/utility.conf’:
ca_cert => '/etc/kubernetes.ca.pem',
token => 'utility-token',
}
Properties
-
ensure
(defaults to: present)
Whether the kubeconfig should be present or absent (default: present)
Supported values:- present
- absent
Parameters
-
ca_cert
The path to a CA certificate to include in the kubeconfig
-
client_cert
The path to a client certificate to include in the kubeconfig
-
client_key
The path to a client key to include in the kubeconfig
-
cluster
(defaults to: default)
The name of the cluster to manage in the kubeconfig file
-
context
(defaults to: default)
The name of the cluster to manage in the kubeconfig file
-
current_context
The current context to set
-
embed_certs
(defaults to: true)
Should the certificate files be embedded into the kubeconfig file
Supported values:- true
- false
-
group
The owner of the kubeconfig file
-
mode
(defaults to: 0600)
The access mode of the kubeconfig file
-
namespace
(defaults to: default)
The namespace to default to
-
owner
The owner of the kubeconfig file
-
password
The password of a user
-
path
An arbitrary path used as the identity of the resource.
-
provider
The specific backend to use for this ‘kubeconfig` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.
-
server
The server URL for the cluster
-
skip_tls_verify
(defaults to: false)
Skip verifying the TLS certs for the cluster
Supported values:- true
- false
-
tls_server_name
Specify an alternate server name to use for TLS verification
-
token
An authentication token for a user
-
token_file
The path to a file containing an authentication token
-
user
(defaults to: default)
The name of the user to manage in the kubeconfig file
-
username
The username of a user