-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
k3kcli
UX enhancement
#206
Comments
+1 for mirroring how existing kubectl functions for naming of a resource ie
+1 for mirroring the use of a default namespace as its also an existing expectation from anyone familiar with kubectl commands against a cluster
As it's an expectation for k3k to run under an existing cluster it would make the most sense to create a directory adjacent to the existing config
If KUBECONFIG isn't set the command should fail the same way it does against a regular cluster.
$ kubectl config --help
|
@VestigeJ thanks for the feedback.
Here the idea was to creating a dedicated namespace "per cluster", something like
That will be nice. I would use the XDG Specification, and have a
Like the
Since the We should also remember to fix a small issue I just thought about. It looks like currently the kubeconfig is using the |
Now we have improved a bit the Cluster spec, and we should think about aligning the
k3kcli
to the new changes.Some proposed changes:
k3kcli cluster create
Currently the Cluster name is a flag (
--name value
). This is now the only required field, together with thenamespace
. It would make sense to move it as the only required argument instead:Regarding the
--namespace
, if not specified it looks cleaner to have a dedicated namespace. I.e. the abovek3kcli cluster create mycluster
command will create the Cluster inside a newk3k-mycluster
namespace. If the--namespace
flag is defined we will try to create the resource in that namespace, without checking its existence. We can think about adding a--create-namespace
flag eventually (like Helm).The
--version
flag help should be updated to indicate that the k8s host version will be used by default.By default the
NodePort
is set. I think we should provide an--expose
flag, and maybe not exposing the Cluster by default, suggesting to use thekubectl port-forward
. The flag could have the options like--expose nodeport
. This needs some thoughts.We can provide a
--cluster-kubeconfig
flag to let the user choose the output file where to extract the kubeconfig.As per other issue the default kubeconfig should be taken into account, it the KUBECONFIG var is empty.
k3kcli cluster list
A
list
command will be nice to have.k3kcli cluster delete
We should test and fix what is not working, and align this to the
create
command.other
We should document how to embed the automplete (I wasn't able to).
Related issues:
--kubeconfig
flag as optional ink3kcli cluster <cmd>
#153The text was updated successfully, but these errors were encountered: