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       --current=false      Modify the current context
29
30
31

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

126                # Set the user field on the gce context entry without touching other values
127                kubectl config set-context gce --user=cluster-admin
128
129
130
131

SEE ALSO

133       kubectl-config(1),
134
135
136

HISTORY

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