kubectl config set-cluster [page]deterministic
Set a cluster entry in kubeconfig
##
Set a cluster entry in kubeconfig.
Specifying a name that already exists will merge new fields on top of existing values for those fields.
``` kubectl config set-cluster NAME [--server=server] [--certificate-authority=path/to/certificate/authority] [--insecure-skip-tls-verify=true] [--tls-server-name=example.com] ```
##
``` # Set only the server field on the e2e cluster entry without touching other values kubectl config set-cluster e2e --server=https://1.2.3.4 # Embed certificate authority data for the e2e cluster entry kubectl config set-cluster e2e --embed-certs --certificate-authority=~/.kube/e2e/kubernetes.ca.crt # Disable cert checking for the e2e cluster entry kubectl config set-cluster e2e --insecure-skip-tls-verify=true # Set the custom TLS server name to use for validation for the e2e cluster entry kubectl config set-cluster e2e --tls-server-name=my-cluster-name # Set the proxy URL for the e2e cluster entry kubectl config set-cluster e2e --proxy-url=https://1.2.3.4 ```
##
<table style="width: 100%; table-layout: fixed;"> <colgroup> <col span="1" style="width: 10px;" /> <col span="1" /> </colgroup> <tbody>
<tr> <td colspan="2">--certificate-authority string</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Path to certificate-authority file for the cluster entry in kubeconfig</p></td> </tr>
<tr> <td colspan="2">--embed-certs tristate[=true]</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>embed-certs for the cluster entry in kubeconfig</p></td> </tr>
<tr> <td colspan="2">-h, --help</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>help for set-cluster</p></td> </tr>
<tr> <td colspan="2">--insecure-skip-tls-verify tristate[=true]</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>insecure-skip-tls-verify for the cluster entry in kubeconfig</p></td> </tr>
<tr> <td colspan="2">--proxy-url string</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>proxy-url for the cluster entry in kubeconfig</p></td> </tr>
<tr> <td colspan="2">--server string</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>server for the cluster entry in kubeconfig</p></td> </tr>
<tr> <td colspan="2">--tls-server-name string</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>tls-server-name for the cluster entry in kubeconfig</p></td> </tr>
</tbody> </table>
##
<table style="width: 100%; table-layout: fixed;"> <colgroup> <col span="1" style="width: 10px;" /> <col span="1" /> </colgroup> <tbody>
<tr> <td colspan="2">--as string</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Username to impersonate for the operation. User could be a regular user or a service account in a namespace.</p></td> </tr>
<tr> <td colspan="2">--as-group strings</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Group to impersonate for the operation, this flag can be repeated to specify multiple groups.</p></td> </tr>
<tr> <td colspan="2">--as-uid string</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>UID to impersonate for the operation.</p></td> </tr>
<tr> <td colspan="2">--as-user-extra strings</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>User extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key.</p></td> </tr>
<tr> <td colspan="2">--cache-dir string Default: "$HOME/.kube/cache"</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Default cache directory</p></td> </tr>
<tr> <td colspan="2">--client-certificate string</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Path to a client certificate file for TLS< …(trimmed)