Update kubectl documentation with new flags

Starting with kops 1.19, kops export kubecfg will also require passing either the --admin or --user flag
This commit is contained in:
Riccardo Padovani 2021-02-10 11:06:25 +01:00
parent 29047fff56
commit 1327a7aba7
1 changed files with 3 additions and 1 deletions

View File

@ -11,4 +11,6 @@ NAME=<kubernetes.mydomain.com>
kops export kubecfg ${NAME}
```
Warning: Note that the exported configuration gives you full admin privileges using TLS certificates that are not easy to rotate. For regular kubectl usage, you should consider using another method for authenticating to the cluster.
Warning: Note that the exported configuration gives you full admin privileges using TLS certificates that are not easy to rotate. For regular kubectl usage, you should consider using another method for authenticating to the cluster.
If you are using kops >= 1.19.0, kops export kubecfg will also require passing either the --admin or --user flag if the context does not already exist. For more information, see the section "Changes to kubernetes config export" in the [release notes].(https://github.com/kubernetes/kops/releases/tag/v1.19.0)