mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 19:52:42 +00:00
Merge pull request #20672 from brendandburns/dump
Automatic merge from submit-queue Add a 'kubectl clusterinfo dump' option Ref: #3500 @bgrant0607 @smarterclayton @jszczepkowski Usage: ``` # Dump current cluster state to stdout kubectl clusterinfo dump # Dump current cluster state to /tmp kubectl clusterinfo dump --output-directory=/tmp # Dump all namespaces to stdout kubectl clusterinfo dump --all-namespaces # Dump a set of namespaces to /tmp kubectl clusterinfo dump --namespaces default,kube-system --output-directory=/tmp ``` <!-- Reviewable:start --> --- This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/20672) <!-- Reviewable:end -->
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
name: cluster-info
|
||||
synopsis: Display cluster info
|
||||
description: |
|
||||
description: |-
|
||||
Display addresses of the master and services with label kubernetes.io/cluster-service=true
|
||||
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
|
||||
options:
|
||||
- name: include-extended-apis
|
||||
default_value: "true"
|
||||
@@ -70,3 +71,4 @@ inherited_options:
|
||||
comma-separated list of pattern=N settings for file-filtered logging
|
||||
see_also:
|
||||
- kubectl
|
||||
- dump
|
||||
|
Reference in New Issue
Block a user