Release Notes
Well it's finally here! A little later than planned, yes. Worth the wait? We think so. K9sAlpha has a new code base, bunch of bug fixes and some new features. That said, we're bracing for a rough departure ;( Though we've tried to flush as many bugs as possible prior to releasing Alpha in the wild, many issues likely remain. So please, keep your issues/PR tools handy and help us flush out issues so we can stabilize promptly.
You can expect some rapid release fires (in good'ol K9s fashion) as we stabilize and make K9s𝞪 better for all of us!
I am, as ever, grateful and humbled by all of you for your continued love and support for this project.
Thank you!!
On Slack? Please join us K9slackers
♫ Sounds Behind The Release ♭
The Historical Documents
- Documentation: K9sAlpha Docs
- Repo: K9sAlpha Repo
Sanitize Me!
Are you or your co-workers leaving jobs/crons turds in completed or error states all over your clusters?
Fear not, Alpha got you! Introducing a new command z available in pod view think of it as your pods MrClean as it cleans out any pods left out in those states. When z is activated a dialog will prompt you to confirm this operation.
Restart Me Job!
Often enough when a job fails you might just want to restart it as the timing might have been off. This might sound like a trivial operation, but it is not easily achieved via kubectl. While in job view, you can now hit r to restart your job.
Is The Idiot Light On?
Have you ever deleted a namespace/node/deployment/etc.. on your prod clusters?
Almost happened to me!
We've added a new configuration to further guard from nuking your precious resources via what we like to call the IdiotLight. When this configuration option is set to true, all deletions will be asking you to type in the name of the resource you want to delete to make sure you think a bit more about it, prior to blindly pressing OK. This option is available globally and can also be overridden at the context level too!
ReadOnly Contexts
K9s offered a readOnly mode to disable any potentially damaging actions. This option could be set via a CLI arg or in the general configuration. Now, you can set this mode on a per context basis which will catch you for blowing things away on clusters where you're not supposed to.
Please see Context Config Section
Configurations
A lot of good folks have voiced issues with K9s being yet another tool cluttering their home directory with another dotfile. To this end we've moved all K9sAlpha configurations, state, etc... to conform to the XDG Specification. In short, you have full control of where to store your K9s𝞪 artifacts by either using the XDG recommended defaults or overriding them using XDG env variables.
Please see General Config Section
Workloads
Workloads are defined using your favorite Kubernetes resource finder aka labels. By employing strategic labeling in your resources manifests, you can further refine related resources using labels based queries in your namespaces. K9sAlpha leverages this very feature to allow you to define workloads and view their related resources all in a single view.
This introduces a new command :workload(s) or :wk for short to open the Workloads view. While in the view, you can perform CRUD operations on your workload definitions and settings. When selecting a particular workload and pressing enter you now view all the associated resources. In K9s tradition, this view is hot and will be updated to reflect the current state of these resources in your cluster.
Please see Workload Section
Deltas
If you've ever wondered why the K9sAlpha release was delayed? Well here is the guy!
Related to workload definitions, you now also have a Delta feature that helps you ensure your source of truth aka the manifests on disk match their counterpart resource deployed on your cluster. Thus if you try to CowBoy a deployment and make changes directly on the cluster Delta will catch you. In order to activate this feature, you will need to enter either a file or a directory of manifest files/dirs in the Manifests field for the workloads specified above. Pressing d while in either Worloads or Workload views will surface the Delta view that shows a report of the deltas found on your workload.
NOTE! At this time, K9s𝞪 deltas only supports either straight up Kubernetes manifests or Kustomized ones.
NOTE! This is a very hard feature to get just right. I am sure we will have many more iteration on this to ensure the reports are correct and won't through false positives/negatives.
Scans
Oh wait! here is another one that delayed the drop ;(.
While in Workload view, a cluster resource scanner will be activated to highlight potential issues with your resources configuration. Previously, one could get a Popeye report via the popeye command. We've changed this feature and rewrote the scanners to allow you to view issues directly while Alpha in in workload mode. Pressing r surfaces a new Radar view that highlights the scans report.
NOTE! Both deltas and scans are expensive to run so there will be a delay showing updates so please be patient as the reported figures are eventually consistent!
NOTE! I owe a bunch of docs here too. If you're so inclined, please help!
NOTE! Scans are currently limited to your usual resource suspects ie the one you typically get via kubectl get all + PV/PVC. As this feature firms up, we will be adding more and deeper scans.
And That's A Wrap!
We hope this will be a smooth transition, if not we're prepared to resolve a lot issues on this rc drop as these features are quite tricky to implement and complex. We will work with each one of you, as customary, to ensure we ramp up quality first before moving on to the next batch of features for the subsequent K9sAlpha drops!
If you have questions about licenses, group pricing, non-profit, education, discounts, etc..., please ping me directly.
Thank you all once again for your time reading all this and for your continued excitement for K9s𝜶!
© 2021 Imhotep Software LLC. All materials licensed under Apache v2.0
