-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43540 from neolit123/1.29-add-super-admin-kubeconfig
kubeadm: introduce documentation changes for super-admin.conf
- Loading branch information
Showing
9 changed files
with
318 additions
and
33 deletions.
There are no files selected for viewing
92 changes: 92 additions & 0 deletions
92
...reference/setup-tools/kubeadm/generated/kubeadm_certs_renew_super-admin.conf.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<!-- | ||
The file is auto-generated from the Go source code of the component using a generic | ||
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how | ||
to generate the reference documentation, please read | ||
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/). | ||
To update the reference content, please follow the | ||
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/) | ||
guide. You can file document formatting bugs against the | ||
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project. | ||
--> | ||
|
||
|
||
Renew the certificate embedded in the kubeconfig file for the super-admin | ||
|
||
### Synopsis | ||
|
||
|
||
Renew the certificate embedded in the kubeconfig file for the super-admin. | ||
|
||
Renewals run unconditionally, regardless of certificate expiration date; extra attributes such as SANs will be based on the existing file/certificates, there is no need to resupply them. | ||
|
||
Renewal by default tries to use the certificate authority in the local PKI managed by kubeadm; as alternative it is possible to use K8s certificate API for certificate renewal, or as a last option, to generate a CSR request. | ||
|
||
After renewal, in order to make changes effective, is required to restart control-plane components and eventually re-distribute the renewed certificate in case the file is used elsewhere. | ||
|
||
``` | ||
kubeadm certs renew super-admin.conf [flags] | ||
``` | ||
|
||
### Options | ||
|
||
<table style="width: 100%; table-layout: fixed;"> | ||
<colgroup> | ||
<col span="1" style="width: 10px;" /> | ||
<col span="1" /> | ||
</colgroup> | ||
<tbody> | ||
|
||
<tr> | ||
<td colspan="2">--cert-dir string Default: "/etc/kubernetes/pki"</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>The path where to save the certificates</p></td> | ||
</tr> | ||
|
||
<tr> | ||
<td colspan="2">--config string</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Path to a kubeadm configuration file.</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 admin.conf</p></td> | ||
</tr> | ||
|
||
<tr> | ||
<td colspan="2">--kubeconfig string Default: "/etc/kubernetes/admin.conf"</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.</p></td> | ||
</tr> | ||
|
||
</tbody> | ||
</table> | ||
|
||
|
||
|
||
### Options inherited from parent commands | ||
|
||
<table style="width: 100%; table-layout: fixed;"> | ||
<colgroup> | ||
<col span="1" style="width: 10px;" /> | ||
<col span="1" /> | ||
</colgroup> | ||
<tbody> | ||
|
||
<tr> | ||
<td colspan="2">--rootfs string</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>[EXPERIMENTAL] The path to the 'real' host root filesystem.</p></td> | ||
</tr> | ||
|
||
</tbody> | ||
</table> | ||
|
||
|
||
|
121 changes: 121 additions & 0 deletions
121
...ence/setup-tools/kubeadm/generated/kubeadm_init_phase_kubeconfig_super-admin.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<!-- | ||
The file is auto-generated from the Go source code of the component using a generic | ||
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how | ||
to generate the reference documentation, please read | ||
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/). | ||
To update the reference content, please follow the | ||
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/) | ||
guide. You can file document formatting bugs against the | ||
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project. | ||
--> | ||
|
||
|
||
Generate a kubeconfig file for the super-admin | ||
|
||
### Synopsis | ||
|
||
|
||
Generate a kubeconfig file for the super-admin. | ||
|
||
``` | ||
kubeadm init phase kubeconfig super-admin [flags] | ||
``` | ||
|
||
### Options | ||
|
||
<table style="width: 100%; table-layout: fixed;"> | ||
<colgroup> | ||
<col span="1" style="width: 10px;" /> | ||
<col span="1" /> | ||
</colgroup> | ||
<tbody> | ||
|
||
<tr> | ||
<td colspan="2">--apiserver-advertise-address string</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>The IP address the API Server will advertise it's listening on. If not set the default network interface will be used.</p></td> | ||
</tr> | ||
|
||
<tr> | ||
<td colspan="2">--apiserver-bind-port int32 Default: 6443</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Port for the API Server to bind to.</p></td> | ||
</tr> | ||
|
||
<tr> | ||
<td colspan="2">--cert-dir string Default: "/etc/kubernetes/pki"</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>The path where to save and store the certificates.</p></td> | ||
</tr> | ||
|
||
<tr> | ||
<td colspan="2">--config string</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Path to a kubeadm configuration file.</p></td> | ||
</tr> | ||
|
||
<tr> | ||
<td colspan="2">--control-plane-endpoint string</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Specify a stable IP address or DNS name for the control plane.</p></td> | ||
</tr> | ||
|
||
<tr> | ||
<td colspan="2">--dry-run</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Don't apply any changes; just output what would be done.</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 admin</p></td> | ||
</tr> | ||
|
||
<tr> | ||
<td colspan="2">--kubeconfig-dir string Default: "/etc/kubernetes"</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>The path where to save the kubeconfig file.</p></td> | ||
</tr> | ||
|
||
<tr> | ||
<td colspan="2">--kubernetes-version string Default: "stable-1"</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Choose a specific Kubernetes version for the control plane.</p></td> | ||
</tr> | ||
|
||
</tbody> | ||
</table> | ||
|
||
|
||
|
||
### Options inherited from parent commands | ||
|
||
<table style="width: 100%; table-layout: fixed;"> | ||
<colgroup> | ||
<col span="1" style="width: 10px;" /> | ||
<col span="1" /> | ||
</colgroup> | ||
<tbody> | ||
|
||
<tr> | ||
<td colspan="2">--rootfs string</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>[EXPERIMENTAL] The path to the 'real' host root filesystem.</p></td> | ||
</tr> | ||
|
||
</tbody> | ||
</table> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.