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

NAME

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

SYNOPSIS

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

DESCRIPTION

19       Set a cluster 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       --certificate-authority=""      Path to certificate-authority file  for
29       the cluster entry in kubeconfig
30
31
32       --embed-certs=false       embed-certs for the cluster entry in kubecon‐
33       fig
34
35
36       --insecure-skip-tls-verify=false      insecure-skip-tls-verify for  the
37       cluster entry in kubeconfig
38
39
40       --proxy-url=""      proxy-url for the cluster entry in kubeconfig
41
42
43       --server=""      server for the cluster entry in kubeconfig
44
45
46       --tls-server-name=""       tls-server-name  for  the  cluster  entry in
47       kubeconfig
48
49
50

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

132                # Set only the server field on the e2e cluster entry without touching other values
133                kubectl config set-cluster e2e --server=https://1.2.3.4
134
135                # Embed certificate authority data for the e2e cluster entry
136                kubectl config set-cluster e2e --embed-certs --certificate-authority=~/.kube/e2e/kubernetes.ca.crt
137
138                # Disable cert checking for the e2e cluster entry
139                kubectl config set-cluster e2e --insecure-skip-tls-verify=true
140
141                # Set custom TLS server name to use for validation for the e2e cluster entry
142                kubectl config set-cluster e2e --tls-server-name=my-cluster-name
143
144                # Set proxy url for the e2e cluster entry
145                kubectl config set-cluster e2e --proxy-url=https://1.2.3.4
146
147
148
149

SEE ALSO

151       kubectl-config(1),
152
153
154

HISTORY

156       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
157       com)  based  on the kubernetes source material, but hopefully they have
158       been automatically generated since!
159
160
161
162Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum