The goal of this package (the combination of npm package and browser extension) is to provide an easier way to login into Kubernetes dashboard on an Amazon EKS cluster then described on Amazon's blog.
Previously you had to manually generate and paste the token from the CLI into the "Enter token" input and then choose "Sign in".
If you are lazy like me, then most probably you find it boring as heck 🥱, so what if you could configure it once on your machine and forget about this routine 🤯? And yes, now you can do it!
- Node.js v8+
aws-cliinstalled & configured- Make sure your AWS user has access to AWS EKS cluster
npm install -g kube-authkube-auth configure --browser chrome- Open
chrome://extensions/page - Enable developer mode
- Press "Load unpacked" and select the directory returned by a
kube-auth whereiscommand - Click on extension icon (browser extension bar) and fill Amazon EKS cluster information
- That's it!
- Automatic native host generation for all browsers and OS'
- Get rid of
aws eks get-tokenCLI command by usingaws-sdk(see Python example) - Rewrite to
typescript - Use
webpackfor extension build - Support Windows machines (
regeditmight needed) - Use Mozilla's polyfill in order to support Chrome, Firefox, Opera & Edge
- Get rid of
native-messaginglibrary (maybe...) - Think about installing browser extension automatically (see docs)
- Add tests
- Move host generation into separate package (after good testing)
- If you are facing some issues, please don't hesitate to open an issue
- If you have any idea on how to improve this module, feel free to contribute or open an issue with
enhancementlabel
We will get back to you as soon as possible.
This repository can be used under the MIT license.