Merge pull request #4967 from jlowdermilk/kubeconfig
Simplify generating kubeconfig with embeded cert data
This commit is contained in:
@@ -7,7 +7,7 @@ Sets a cluster entry in .kubeconfig
|
||||
```
|
||||
Sets a cluster entry in .kubeconfig
|
||||
Specifying a name that already exists will merge new fields on top of existing values for those fields.
|
||||
e.g.
|
||||
e.g.
|
||||
kubectl config set-cluster e2e --certificate-authority=~/.kube/e2e/.kubernetes.ca.cert
|
||||
only sets the certificate-authority field on the e2e cluster entry without touching other values.
|
||||
|
||||
@@ -15,6 +15,12 @@ Sets a cluster entry in .kubeconfig
|
||||
|
||||
kubectl config set-cluster name [--server=server] [--certificate-authority=path/to/certficate/authority] [--api-version=apiversion] [--insecure-skip-tls-verify=true]
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
--embed-certs=false: embed-certs for the cluster entry in .kubeconfig
|
||||
```
|
||||
|
||||
### Options inherrited from parent commands
|
||||
|
||||
```
|
||||
|
@@ -28,6 +28,12 @@ Sets a user entry in .kubeconfig
|
||||
|
||||
kubectl config set-credentials name [--auth-path=authfile] [--client-certificate=certfile] [--client-key=keyfile] [--token=bearer_token] [--username=basic_user] [--password=basic_password]
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
--embed-certs=false: embed client cert/key for the user entry in .kubeconfig
|
||||
```
|
||||
|
||||
### Options inherrited from parent commands
|
||||
|
||||
```
|
||||
|
@@ -20,6 +20,12 @@ Sets a cluster entry in .kubeconfig
|
||||
only sets the certificate\-authority field on the e2e cluster entry without touching other values.
|
||||
|
||||
|
||||
.SH OPTIONS
|
||||
.PP
|
||||
\fB\-\-embed\-certs\fP=false
|
||||
embed\-certs for the cluster entry in .kubeconfig
|
||||
|
||||
|
||||
.SH OPTIONS INHERITED FROM PARENT COMMANDS
|
||||
.PP
|
||||
\fB\-\-alsologtostderr\fP=false
|
||||
|
@@ -45,6 +45,12 @@ Basic auth flags:
|
||||
Bearer token and basic auth are mutually exclusive.
|
||||
|
||||
|
||||
.SH OPTIONS
|
||||
.PP
|
||||
\fB\-\-embed\-certs\fP=false
|
||||
embed client cert/key for the user entry in .kubeconfig
|
||||
|
||||
|
||||
.SH OPTIONS INHERITED FROM PARENT COMMANDS
|
||||
.PP
|
||||
\fB\-\-alsologtostderr\fP=false
|
||||
|
Reference in New Issue
Block a user