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

NAME

9       kubectl config set-context - Set a context entry in kubeconfig
10
11
12

SYNOPSIS

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

DESCRIPTION

19       Set a context entry in kubeconfig.
20
21
22       Specifying  a  name that already exists will merge new fields on top of
23       existing values for those fields.
24
25
26

OPTIONS

28       --cluster=""      cluster for the context entry in kubeconfig
29
30
31       --current=false      Modify the current context
32
33
34       --namespace=""      namespace for the context entry in kubeconfig
35
36
37       --user=""      user for the context entry in kubeconfig
38
39
40

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

129                # Set the user field on the gce context entry without touching other values
130                kubectl config set-context gce --user=cluster-admin
131
132
133
134

SEE ALSO

136       kubectl-config(1),
137
138
139

HISTORY

141       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
142       com)  based  on the kubernetes source material, but hopefully they have
143       been automatically generated since!
144
145
146
147Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum