mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 22:53:22 +00:00
Fixes kubectl config set-credentials examples
This commit is contained in:
@@ -147,13 +147,13 @@ Bearer token and basic auth are mutually exclusive.
|
||||
.nf
|
||||
// Set only the "client\-key" field on the "cluster\-admin"
|
||||
// entry, without touching other values:
|
||||
$ kubectl set\-credentials cluster\-admin \-\-client\-key=\~/.kube/admin.key
|
||||
$ kubectl config set\-credentials cluster\-admin \-\-client\-key=\~/.kube/admin.key
|
||||
|
||||
// Set basic auth for the "cluster\-admin" entry
|
||||
$ kubectl set\-credentials cluster\-admin \-\-username=admin \-\-password=uXFGweU9l35qcif
|
||||
$ kubectl config set\-credentials cluster\-admin \-\-username=admin \-\-password=uXFGweU9l35qcif
|
||||
|
||||
// Embed client certificate data in the "cluster\-admin" entry
|
||||
$ kubectl set\-credentials cluster\-admin \-\-client\-certificate=\~/.kube/admin.crt \-\-embed\-certs=true
|
||||
$ kubectl config set\-credentials cluster\-admin \-\-client\-certificate=\~/.kube/admin.crt \-\-embed\-certs=true
|
||||
|
||||
.fi
|
||||
.RE
|
||||
|
Reference in New Issue
Block a user