1KUBERNETES(1)(kubernetes) KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7
9 kubectl config set-cluster - Set a cluster entry in kubeconfig
10
11
12
14 kubectl config set-cluster [OPTIONS]
15
16
17
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
28 --embed-certs=false embed-certs for the cluster entry in kubecon‐
29 fig
30
31
32 --proxy-url="" proxy-url for the cluster entry in kubeconfig
33
34
35
37 --as="" Username to impersonate for the operation. User could be a
38 regular user or a service account in a namespace.
39
40
41 --as-group=[] Group to impersonate for the operation, this flag
42 can be repeated to specify multiple groups.
43
44
45 --as-uid="" UID to impersonate for the operation.
46
47
48 --azure-container-registry-config="" Path to the file containing
49 Azure container registry configuration information.
50
51
52 --cache-dir="/builddir/.kube/cache" Default cache directory
53
54
55 --certificate-authority="" Path to a cert file for the certificate
56 authority
57
58
59 --client-certificate="" Path to a client certificate file for TLS
60
61
62 --client-key="" Path to a client key file for TLS
63
64
65 --cluster="" The name of the kubeconfig cluster to use
66
67
68 --context="" The name of the kubeconfig context to use
69
70
71 --insecure-skip-tls-verify=false If true, the server's certificate
72 will not be checked for validity. This will make your HTTPS connections
73 insecure
74
75
76 --kubeconfig="" use a particular kubeconfig file
77
78
79 --match-server-version=false Require server version to match
80 client version
81
82
83 -n, --namespace="" If present, the namespace scope for this CLI
84 request
85
86
87 --password="" Password for basic authentication to the API server
88
89
90 --profile="none" Name of profile to capture. One of
91 (none|cpu|heap|goroutine|threadcreate|block|mutex)
92
93
94 --profile-output="profile.pprof" Name of the file to write the
95 profile to
96
97
98 --request-timeout="0" The length of time to wait before giving up
99 on a single server request. Non-zero values should contain a corre‐
100 sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
101 out requests.
102
103
104 -s, --server="" The address and port of the Kubernetes API server
105
106
107 --tls-server-name="" Server name to use for server certificate
108 validation. If it is not provided, the hostname used to contact the
109 server is used
110
111
112 --token="" Bearer token for authentication to the API server
113
114
115 --user="" The name of the kubeconfig user to use
116
117
118 --username="" Username for basic authentication to the API server
119
120
121 --version=false Print version information and quit
122
123
124 --warnings-as-errors=false Treat warnings received from the server
125 as errors and exit with a non-zero exit code
126
127
128
130 # Set only the server field on the e2e cluster entry without touching other values
131 kubectl config set-cluster e2e --server=https://1.2.3.4
132
133 # Embed certificate authority data for the e2e cluster entry
134 kubectl config set-cluster e2e --embed-certs --certificate-authority=~/.kube/e2e/kubernetes.ca.crt
135
136 # Disable cert checking for the e2e cluster entry
137 kubectl config set-cluster e2e --insecure-skip-tls-verify=true
138
139 # Set custom TLS server name to use for validation for the e2e cluster entry
140 kubectl config set-cluster e2e --tls-server-name=my-cluster-name
141
142 # Set proxy url for the e2e cluster entry
143 kubectl config set-cluster e2e --proxy-url=https://1.2.3.4
144
145
146
147
149 kubectl-config(1),
150
151
152
154 January 2015, Originally compiled by Eric Paris (eparis at redhat dot
155 com) based on the kubernetes source material, but hopefully they have
156 been automatically generated since!
157
158
159
160Manuals User KUBERNETES(1)(kubernetes)