kubeone-kubeconfig-generate(1)

kubeone-kubeconfig-generate1

Generate kubeconfig

Usage

kubeone kubeconfig generate [flags]

Overview

Generate kubeconfig with given certificate parameters.

Options

--cn=""
CommonName (CN) for the generated client certificate.

-h, --help[=false]
help for generate

--on=[]
OrganizationName (ON) for the generated client certificate.

-s, --super-admin[=false]
Generate superadmin kubeconfig, shorthand for --cn @ --on system:masters

--ttl=1h0m0s
Time To Live for the generated certificate.

Options inherited from parent commands

-c, --credentials=""
File to source credentials and secrets from

-d, --debug[=false]
debug output with stacktrace

-l, --log-format="text"
format for logging

-m, --manifest="./kubeone.yaml"
Path to the KubeOne config

-t, --tfjson=""
Source for terraform output in JSON - to read from stdin. If path is a file, contents will be used. If path is a dictionary, terraform output -json is executed in this path

-v, --verbose[=false]
verbose output

Examples

kubeone kubeconfig generate -m mycluster.yaml -t tf.json --super-admin

History

8-Feb-2026 Auto generated by spf13/cobra

From kubeone 1.12.3-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.