|
| 1 | +<!-- |
| 2 | +The file is auto-generated from the Go source code of the component using a generic |
| 3 | +[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how |
| 4 | +to generate the reference documentation, please read |
| 5 | +[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/). |
| 6 | +To update the reference conent, please follow the |
| 7 | +[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/) |
| 8 | +guide. You can file document formatting bugs against the |
| 9 | +[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project. |
| 10 | +--> |
| 11 | + |
| 12 | + |
| 13 | +Output a kubeconfig file for an additional user |
| 14 | + |
| 15 | +### Synopsis |
| 16 | + |
| 17 | + |
| 18 | +Output a kubeconfig file for an additional user. |
| 19 | + |
| 20 | +``` |
| 21 | +kubeadm kubeconfig user [flags] |
| 22 | +``` |
| 23 | + |
| 24 | +### Examples |
| 25 | + |
| 26 | +``` |
| 27 | + # Output a kubeconfig file for an additional user named foo using a kubeadm config file bar |
| 28 | + kubeadm kubeconfig user --client-name=foo --config=bar |
| 29 | +``` |
| 30 | + |
| 31 | +### Options |
| 32 | + |
| 33 | + <table style="width: 100%; table-layout: fixed;"> |
| 34 | +<colgroup> |
| 35 | +<col span="1" style="width: 10px;" /> |
| 36 | +<col span="1" /> |
| 37 | +</colgroup> |
| 38 | +<tbody> |
| 39 | + |
| 40 | +<tr> |
| 41 | +<td colspan="2">--client-name string</td> |
| 42 | +</tr> |
| 43 | +<tr> |
| 44 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>The name of user. It will be used as the CN if client certificates are created</p></td> |
| 45 | +</tr> |
| 46 | + |
| 47 | +<tr> |
| 48 | +<td colspan="2">--config string</td> |
| 49 | +</tr> |
| 50 | +<tr> |
| 51 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Path to a kubeadm configuration file.</p></td> |
| 52 | +</tr> |
| 53 | + |
| 54 | +<tr> |
| 55 | +<td colspan="2">-h, --help</td> |
| 56 | +</tr> |
| 57 | +<tr> |
| 58 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>help for user</p></td> |
| 59 | +</tr> |
| 60 | + |
| 61 | +<tr> |
| 62 | +<td colspan="2">--org strings</td> |
| 63 | +</tr> |
| 64 | +<tr> |
| 65 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>The orgnizations of the client certificate. It will be used as the O if client certificates are created</p></td> |
| 66 | +</tr> |
| 67 | + |
| 68 | +<tr> |
| 69 | +<td colspan="2">--token string</td> |
| 70 | +</tr> |
| 71 | +<tr> |
| 72 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>The token that should be used as the authentication mechanism for this kubeconfig, instead of client certificates</p></td> |
| 73 | +</tr> |
| 74 | + |
| 75 | +<tr> |
| 76 | +<td colspan="2">--validity-period duration Default: 8760h0m0s</td> |
| 77 | +</tr> |
| 78 | +<tr> |
| 79 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>The validity period of the client certificate. It is an offset from the current time.</p></td> |
| 80 | +</tr> |
| 81 | + |
| 82 | +</tbody> |
| 83 | +</table> |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | +### Options inherited from parent commands |
| 88 | + |
| 89 | + <table style="width: 100%; table-layout: fixed;"> |
| 90 | +<colgroup> |
| 91 | +<col span="1" style="width: 10px;" /> |
| 92 | +<col span="1" /> |
| 93 | +</colgroup> |
| 94 | +<tbody> |
| 95 | + |
| 96 | +<tr> |
| 97 | +<td colspan="2">--rootfs string</td> |
| 98 | +</tr> |
| 99 | +<tr> |
| 100 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>[EXPERIMENTAL] The path to the 'real' host root filesystem.</p></td> |
| 101 | +</tr> |
| 102 | + |
| 103 | +</tbody> |
| 104 | +</table> |
| 105 | + |
| 106 | + |
| 107 | + |
0 commit comments