kubeconfig

step by step

defining clusters

modify server

defining users

  • using token

  • using basic authentication

  • using certificates

defining contexts

  • by namespace

use contexts

  • verify

OpenID Connect ( OIDC )

[!NOTE|label:references:]

  • verify

[!TIP] a configuration file describes clusters, users, and contexts

  • set clusters

  • set user

    [!NOTE]

    • To delete a user you can run kubectl --kubeconfig=config-demo config unset users.<name>

    • To remove a cluster, you can run kubectl --kubeconfig=config-demo config unset clusters.<name>

    • To remove a context, you can run kubectl --kubeconfig=config-demo config unset contexts.<name>

  • add context

  • result

  • use context

  • linux

  • windows

[!NOTE] references:

  • result

get info

[!INFO|label:references:]

basic view

  • get contexts list

  • get current context

  • get clusters

  • get users

server IP

by cluster name

current in-use via --minify

[!NOTE]

current in-use via current-context

get user

get password

get key

kubeadm-cfg.yml

[!NOTE|label:references:]

have fun

Last updated

Was this helpful?