1KUBERNETES(1)(kubernetes)                            KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7

NAME

9       kubectl config current-context - Display the current-context
10
11
12

SYNOPSIS

14       kubectl config current-context [OPTIONS]
15
16
17

DESCRIPTION

19       Display the current-context.
20
21
22

OPTIONS INHERITED FROM PARENT COMMANDS

24       --as=""      Username to impersonate for the operation. User could be a
25       regular user or a service account in a namespace.
26
27
28       --as-group=[]      Group to impersonate for the  operation,  this  flag
29       can be repeated to specify multiple groups.
30
31
32       --as-uid=""      UID to impersonate for the operation.
33
34
35       --azure-container-registry-config=""       Path  to the file containing
36       Azure container registry configuration information.
37
38
39       --cache-dir="/builddir/.kube/cache"      Default cache directory
40
41
42       --certificate-authority=""      Path to a cert file for the certificate
43       authority
44
45
46       --client-certificate=""      Path to a client certificate file for TLS
47
48
49       --client-key=""      Path to a client key file for TLS
50
51
52       --cluster=""      The name of the kubeconfig cluster to use
53
54
55       --context=""      The name of the kubeconfig context to use
56
57
58       --insecure-skip-tls-verify=false      If true, the server's certificate
59       will not be checked for validity. This will make your HTTPS connections
60       insecure
61
62
63       --kubeconfig=""      use a particular kubeconfig file
64
65
66       --match-server-version=false        Require  server  version  to  match
67       client version
68
69
70       -n, --namespace=""      If present, the namespace scope  for  this  CLI
71       request
72
73
74       --password=""      Password for basic authentication to the API server
75
76
77       --profile="none"         Name   of   profile   to   capture.   One   of
78       (none|cpu|heap|goroutine|threadcreate|block|mutex)
79
80
81       --profile-output="profile.pprof"      Name of the  file  to  write  the
82       profile to
83
84
85       --request-timeout="0"       The length of time to wait before giving up
86       on a single server request. Non-zero values  should  contain  a  corre‐
87       sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
88       out requests.
89
90
91       -s, --server=""      The address and port of the Kubernetes API server
92
93
94       --tls-server-name=""      Server name to  use  for  server  certificate
95       validation.  If  it  is  not provided, the hostname used to contact the
96       server is used
97
98
99       --token=""      Bearer token for authentication to the API server
100
101
102       --user=""      The name of the kubeconfig user to use
103
104
105       --username=""      Username for basic authentication to the API server
106
107
108       --version=false      Print version information and quit
109
110
111       --warnings-as-errors=false      Treat warnings received from the server
112       as errors and exit with a non-zero exit code
113
114
115

EXAMPLE

117                # Display the current-context
118                kubectl config current-context
119
120
121
122

SEE ALSO

124       kubectl-config(1),
125
126
127

HISTORY

129       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
130       com) based on the kubernetes source material, but hopefully  they  have
131       been automatically generated since!
132
133
134
135Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum