forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autogenerate md documentation for kubectl
This does away with the giant dump from cobra for kubectl and instead generates md files which contain similar information, but one per verb. This might work well as part of the cobra project, instead of doing it in kube, but this gets us nice, linked, documentation right now. If people like it, I will try to get something similar into cobra.
- Loading branch information
Showing
32 changed files
with
1,550 additions
and
1,117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
## kubectl config set-cluster | ||
|
||
Sets a cluster entry in .kubeconfig | ||
|
||
### Synopsis | ||
|
||
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. | ||
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. | ||
|
||
|
||
kubectl config set-cluster name [--server=server] [--certificate-authority=path/to/certficate/authority] [--api-version=apiversion] [--insecure-skip-tls-verify=true] | ||
|
||
### Options | ||
|
||
``` | ||
--api-version=: api-version for the cluster entry in .kubeconfig | ||
--certificate-authority=: certificate-authority for the cluster entry in .kubeconfig | ||
--insecure-skip-tls-verify=false: insecure-skip-tls-verify for the cluster entry in .kubeconfig | ||
--server=: server for the cluster entry in .kubeconfig | ||
``` | ||
|
||
### Options inherrited from parent commands | ||
|
||
``` | ||
--alsologtostderr=false: log to standard error as well as files | ||
--api-version="": The API version to use when talking to the server | ||
-a, --auth-path="": Path to the auth info file. If missing, prompt the user. Only used if using https. | ||
--certificate-authority="": Path to a cert. file for the certificate authority. | ||
--client-certificate="": Path to a client key file for TLS. | ||
--client-key="": Path to a client key file for TLS. | ||
--cluster="": The name of the kubeconfig cluster to use | ||
--context="": The name of the kubeconfig context to use | ||
--envvar=false: use the .kubeconfig from $KUBECONFIG | ||
--global=false: use the .kubeconfig from /home/username | ||
-h, --help=false: help for config | ||
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. | ||
--kubeconfig="": use a particular .kubeconfig file | ||
--local=false: use the .kubeconfig in the current directory | ||
--log_backtrace_at=:0: when logging hits line file:N, emit a stack trace | ||
--log_dir=: If non-empty, write log files in this directory | ||
--log_flush_frequency=5s: Maximum number of seconds between log flushes | ||
--logtostderr=true: log to standard error instead of files | ||
--match-server-version=false: Require server version to match client version | ||
--namespace="": If present, the namespace scope for this CLI request. | ||
-s, --server="": The address and port of the Kubernetes API server | ||
--stderrthreshold=2: logs at or above this threshold go to stderr | ||
--token="": Bearer token for authentication to the API server. | ||
--user="": The name of the kubeconfig user to use | ||
--v=0: log level for V logs | ||
--validate=false: If true, use a schema to validate the input before sending it | ||
--vmodule=: comma-separated list of pattern=N settings for file-filtered logging | ||
``` | ||
|
||
### SEE ALSO | ||
* [kubectl-config](kubectl-config.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
## kubectl config set-context | ||
|
||
Sets a context entry in .kubeconfig | ||
|
||
### Synopsis | ||
|
||
Sets a context entry in .kubeconfig | ||
Specifying a name that already exists will merge new fields on top of existing values for those fields. | ||
e.g. | ||
kubectl config set-context gce --user=cluster-admin | ||
only sets the user field on the gce context entry without touching other values. | ||
|
||
|
||
kubectl config set-context name [--cluster=cluster-nickname] [--user=user-nickname] [--namespace=namespace] | ||
|
||
### Options | ||
|
||
``` | ||
--cluster=: cluster for the context entry in .kubeconfig | ||
--namespace=: namespace for the context entry in .kubeconfig | ||
--user=: user for the context entry in .kubeconfig | ||
``` | ||
|
||
### Options inherrited from parent commands | ||
|
||
``` | ||
--alsologtostderr=false: log to standard error as well as files | ||
--api-version="": The API version to use when talking to the server | ||
-a, --auth-path="": Path to the auth info file. If missing, prompt the user. Only used if using https. | ||
--certificate-authority="": Path to a cert. file for the certificate authority. | ||
--client-certificate="": Path to a client key file for TLS. | ||
--client-key="": Path to a client key file for TLS. | ||
--cluster="": The name of the kubeconfig cluster to use | ||
--context="": The name of the kubeconfig context to use | ||
--envvar=false: use the .kubeconfig from $KUBECONFIG | ||
--global=false: use the .kubeconfig from /home/username | ||
-h, --help=false: help for config | ||
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. | ||
--kubeconfig="": use a particular .kubeconfig file | ||
--local=false: use the .kubeconfig in the current directory | ||
--log_backtrace_at=:0: when logging hits line file:N, emit a stack trace | ||
--log_dir=: If non-empty, write log files in this directory | ||
--log_flush_frequency=5s: Maximum number of seconds between log flushes | ||
--logtostderr=true: log to standard error instead of files | ||
--match-server-version=false: Require server version to match client version | ||
--namespace="": If present, the namespace scope for this CLI request. | ||
-s, --server="": The address and port of the Kubernetes API server | ||
--stderrthreshold=2: logs at or above this threshold go to stderr | ||
--token="": Bearer token for authentication to the API server. | ||
--user="": The name of the kubeconfig user to use | ||
--v=0: log level for V logs | ||
--validate=false: If true, use a schema to validate the input before sending it | ||
--vmodule=: comma-separated list of pattern=N settings for file-filtered logging | ||
``` | ||
|
||
### SEE ALSO | ||
* [kubectl-config](kubectl-config.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
## kubectl config set-credentials | ||
|
||
Sets a user entry in .kubeconfig | ||
|
||
### Synopsis | ||
|
||
Sets a user entry in .kubeconfig | ||
Specifying a name that already exists will merge new fields on top of existing values for those fields. | ||
e.g. | ||
kubectl config set-credentials cluster-admin --client-key=~/.kube/cluster-admin/.kubecfg.key | ||
only sets the client-key field on the cluster-admin user entry without touching other values. | ||
|
||
|
||
kubectl config set-credentials name [--auth-path=path/to/auth/file] [--client-certificate=path/to/certficate/file] [--client-key=path/to/key/file] [--token=bearer_token_string] | ||
|
||
### Options | ||
|
||
``` | ||
--auth-path=: auth-path for the user entry in .kubeconfig | ||
--client-certificate=: client-certificate for the user entry in .kubeconfig | ||
--client-key=: client-key for the user entry in .kubeconfig | ||
--token=: token for the user entry in .kubeconfig | ||
``` | ||
|
||
### Options inherrited from parent commands | ||
|
||
``` | ||
--alsologtostderr=false: log to standard error as well as files | ||
--api-version="": The API version to use when talking to the server | ||
-a, --auth-path="": Path to the auth info file. If missing, prompt the user. Only used if using https. | ||
--certificate-authority="": Path to a cert. file for the certificate authority. | ||
--client-certificate="": Path to a client key file for TLS. | ||
--client-key="": Path to a client key file for TLS. | ||
--cluster="": The name of the kubeconfig cluster to use | ||
--context="": The name of the kubeconfig context to use | ||
--envvar=false: use the .kubeconfig from $KUBECONFIG | ||
--global=false: use the .kubeconfig from /home/username | ||
-h, --help=false: help for config | ||
--insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. | ||
--kubeconfig="": use a particular .kubeconfig file | ||
--local=false: use the .kubeconfig in the current directory | ||
--log_backtrace_at=:0: when logging hits line file:N, emit a stack trace | ||
--log_dir=: If non-empty, write log files in this directory | ||
--log_flush_frequency=5s: Maximum number of seconds between log flushes | ||
--logtostderr=true: log to standard error instead of files | ||
--match-server-version=false: Require server version to match client version | ||
--namespace="": If present, the namespace scope for this CLI request. | ||
-s, --server="": The address and port of the Kubernetes API server | ||
--stderrthreshold=2: logs at or above this threshold go to stderr | ||
--token="": Bearer token for authentication to the API server. | ||
--user="": The name of the kubeconfig user to use | ||
--v=0: log level for V logs | ||
--validate=false: If true, use a schema to validate the input before sending it | ||
--vmodule=: comma-separated list of pattern=N settings for file-filtered logging | ||
``` | ||
|
||
### SEE ALSO | ||
* [kubectl-config](kubectl-config.md) | ||
|
Oops, something went wrong.