[{"content":"index #","date":null,"permalink":"https://bobbylikeslinux.net/posts/","section":"","summary":"\u003ch1 id=\"index\" class=\"relative group\"\u003eindex \u003cspan class=\"absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100\"\u003e\u003ca class=\"group-hover:text-primary-300 dark:group-hover:text-neutral-700\" style=\"text-decoration-line: none !important;\" href=\"#index\" aria-label=\"Anchor\"\u003e#\u003c/a\u003e\u003c/span\u003e\u003c/h1\u003e","title":""},{"content":"","date":null,"permalink":"https://bobbylikeslinux.net/","section":"bobbylikeslinux.net","summary":"","title":"bobbylikeslinux.net"},{"content":"","date":null,"permalink":"https://bobbylikeslinux.net/tags/k8s/","section":"Tags","summary":"","title":"K8s"},{"content":"","date":null,"permalink":"https://bobbylikeslinux.net/tags/k9s/","section":"Tags","summary":"","title":"K9s"},{"content":"The cli tool k9s has something of a cult following behind it. A terminal user interface (TUI) that allows a given operator the ability to quickly interface with their Kubernetes (K8s) cluster. More importantly you don\u0026rsquo;t need to remember every last kubectl command ever. Over time you\u0026rsquo;d wish there was some way to cut to your own helpful commands and the hotkeys function allows this! Not only can you make your own hotkey, the built-in help system will automatically display them. I had a rough start with correct file paths with this so I figured I\u0026rsquo;d share what I learned.\nMy goal is to quickly view what resources exist in a namespace. We\u0026rsquo;re going to bind X-Ray view of deployments to a hotkey we can call at any time.\nSetup # Running on a 2020 Mac Book Pro w/ MacOS 15.3.2 k9s installed via homebrew Info # Before you begin, you may want to read the README.md of the k9s project where it\u0026rsquo;ll detail k9s info.\n➜ k9s info ____ __ ________ | |/ / __ \\______ | /\\____ / ___/ | \\ \\ / /\\___ \\ |____|\\__ \\/____//____ / \\/ \\/ Version: 0.40.10 Config: /Users/bobby/Library/Application Support/k9s/config.yaml Custom Views: /Users/bobby/Library/Application Support/k9s/views.yaml Plugins: /Users/bobby/Library/Application Support/k9s/plugins.yaml Hotkeys: /Users/bobby/Library/Application Support/k9s/hotkeys.yaml Aliases: /Users/bobby/Library/Application Support/k9s/aliases.yaml Skins: /Users/bobby/Library/Application Support/k9s/skins Context Configs: /Users/bobby/Library/Application Support/k9s/clusters Logs: /Users/bobby/Library/Application Support/k9s/k9s.log Benchmarks: /Users/bobby/Library/Application Support/k9s/benchmarks ScreenDumps: /Users/bobby/Library/Application Support/k9s/screen-dumps From here I can see exactly where k9s is loading my config from. I\u0026rsquo;d encourage you to run this to save yourself some time chasing file paths\nHotkeys # The documentation for hotkeys is pretty straight forward:\nCreate a file named $XDG_DATA_HOME/k9s/hotkeys.yaml\n$XDG_DATA_HOME on MacOS is considered $HOME/Application Support/ while on Linux it\u0026rsquo;ll be $HOME/.config or even $HOME/.local/config.\nAdd the following to your hotkeys.yaml. You can use resource name/short name to specify a command ie same as typing it while in command mode.\nIf you\u0026rsquo;re a long time user of k9s it appears there was a configuration change, so you\u0026rsquo;ll want to make sure it\u0026rsquo;s hotkeys.yaml plural not hotkey.yaml.\nHere\u0026rsquo;s my hotkeys.yaml cribbed right from the README.md of the repo. I added a shortcut to events with Shift+3 and rbac with Shift+4.\n# $XDG_CONFIG_HOME/k9s/hotkeys.yaml hotKeys: # Hitting Shift-0 navigates to your pod view shift-0: shortCut: Shift-0 description: Viewing pods command: pods # Hitting Shift-1 navigates to your deployments shift-1: shortCut: Shift-1 description: View deployments command: dp # Hitting Shift-2 navigates to your xray deployments shift-2: shortCut: Shift-2 description: Xray Deployments command: xray deploy # Hitting Shift-3 shows K8s events shift-3: shortCut: Shift-3 description: events command: events # Hitting Shift-4 will show RBAC shift-4: shortCut: Shift-4 description: RBAC list command: rb # Hitting Shift-S view the resources in the namespace of your current selection shift-s: shortCut: Shift-S override: true # =\u0026gt; will override the default shortcut related action if set to true (default to false) description: Namespaced resources command: \u0026#34;$RESOURCE_NAME $NAMESPACE\u0026#34; keepHistory: true # whether you can return to the previous view Now my new favorite Shift+2 will give me a user friendly view of everything going on. X-Ray is worthy of its own blog post but the short version is you get a visual tree of a given resource, and in this case it\u0026rsquo;s deployments.\nNow Shift+3 will show me events, very handy for debugging. Shift+4 will now show me k9s matrix of permissions for roles.\nBonus points: when we press ? the help screen displays our custom hotkeys and the description provided! Alternative # Most of this is targeting to quickly see what\u0026rsquo;s running in a given namespace. X-Ray view on deployments does that for me but another option is the workloads view. It will list all resources and you can filter with / just like other screens. While this is helpful, I find the visual tree a nice way to group resources.\n","date":"22 March 2025","permalink":"https://bobbylikeslinux.net/posts/20250322_k9s_hotkeys/","section":"","summary":"\u003cp\u003eThe cli tool \u003ca href=\"https://k9scli.io\" target=\"_blank\" rel=\"noreferrer\"\u003ek9s\u003c/a\u003e has something of a cult following behind it.  A terminal user interface (TUI) that\nallows a given operator the ability to quickly interface with their Kubernetes (K8s) cluster.  More importantly you don\u0026rsquo;t\nneed to remember every last \u003ccode\u003ekubectl\u003c/code\u003e command ever.  Over time you\u0026rsquo;d wish there was some way to cut to your own helpful\ncommands and the \u003ca href=\"https://k9scli.io/topics/hotkeys/\" target=\"_blank\" rel=\"noreferrer\"\u003ehotkeys\u003c/a\u003e function allows this!  Not only can you make your own\nhotkey, the built-in help system will automatically display them.  I had a rough start with correct file paths with this\nso I figured I\u0026rsquo;d share what I learned.\u003c/p\u003e","title":"k9s hotkeys are cool"},{"content":"","date":null,"permalink":"https://bobbylikeslinux.net/tags/kubernetes/","section":"Tags","summary":"","title":"Kubernetes"},{"content":"New Site! # I am happy to report a new site! I have let this lag over the years and I am really interested in having many more updates that are smaller and topic specific. Looking at friends of mine like craquemattic who maintain an excellent blog with useful posts. I\u0026rsquo;d like to contribute more to the internet and leave a place to share tips I come across. Some of my content is a little lotta old. I\u0026rsquo;m going to back-fill those in an archive in the event someone really needs state of art Saltstack and Minecraft help for their 10 year old system. My goal is higher frequency and that meant changing my mostly-manual process to a more automated one.\nHugo continues to only get better, and free and open source themes like Congo from JPanther allow a very fast turn around of new ideas with a high quality.\nI can even do sweet flowcharts courtesy of mermaid: graph LR; A[write]--\u003eB[build]; B--\u003eC[deploy] Looking forward to sharing more content. I started with a post on k9s hotkeys The only thing better than writing a tool to do what you want is modifying one you already like to do one more thing easier.\n","date":"22 March 2025","permalink":"https://bobbylikeslinux.net/posts/20250322_newsite/","section":"","summary":"\u003ch1 id=\"new-site\" class=\"relative group\"\u003eNew Site! \u003cspan class=\"absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100\"\u003e\u003ca class=\"group-hover:text-primary-300 dark:group-hover:text-neutral-700\" style=\"text-decoration-line: none !important;\" href=\"#new-site\" aria-label=\"Anchor\"\u003e#\u003c/a\u003e\u003c/span\u003e\u003c/h1\u003e\u003cp\u003eI am happy to report a new site!  I have let this lag over the years and I am really interested in having many more\nupdates that are smaller and topic specific.  Looking at friends of mine like \u003ca href=\"https://sounding.com\" target=\"_blank\" rel=\"noreferrer\"\u003ecraquemattic\u003c/a\u003e who\nmaintain an excellent blog with useful posts.  I\u0026rsquo;d like to contribute more to the internet and leave a place to share\ntips I come across.\nSome of my content is a little lotta old.  I\u0026rsquo;m going to back-fill those in an archive in the event someone really needs\nstate of art \u003ca href=\"https://saltstack.org/\" target=\"_blank\" rel=\"noreferrer\"\u003eSaltstack\u003c/a\u003e and Minecraft help for their 10 year old system.  My goal is higher\nfrequency and that meant changing my mostly-manual process to a more automated one.\u003c/p\u003e","title":"New Site"},{"content":"","date":null,"permalink":"https://bobbylikeslinux.net/tags/","section":"Tags","summary":"","title":"Tags"},{"content":"","date":null,"permalink":"https://bobbylikeslinux.net/tags/updates/","section":"Tags","summary":"","title":"Updates"},{"content":"About Bobby # Professional in technology. Currently a lead for Data Infrastructure for my favorite gaming company. I like playing with programming languages, systems, and automation. For me automation is getting computers to do what you want them to in the way you want them to do it. I like Go, Python, Linux, FreeBSD, Kubernetes, homelab stuff, networks.\n","date":"1 January 0001","permalink":"https://bobbylikeslinux.net/about/","section":"bobbylikeslinux.net","summary":"\u003ch1 id=\"about-bobby\" class=\"relative group\"\u003eAbout Bobby \u003cspan class=\"absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100\"\u003e\u003ca class=\"group-hover:text-primary-300 dark:group-hover:text-neutral-700\" style=\"text-decoration-line: none !important;\" href=\"#about-bobby\" aria-label=\"Anchor\"\u003e#\u003c/a\u003e\u003c/span\u003e\u003c/h1\u003e\u003cp\u003eProfessional in technology.  Currently a lead for Data Infrastructure for my favorite gaming company.\nI like playing with programming languages, systems, and automation. For me automation is getting computers to do what\nyou want them to in the way you want them to do it.  I like Go, Python, Linux, FreeBSD, Kubernetes, homelab stuff,\nnetworks.\u003c/p\u003e","title":""},{"content":"External Links # Great Blogs # Ed is a rock solid guy, and a serious developer. His blog ranges from software projects to his perspective of the industry. He is also a clown-computing thought leader. Craquemattic offers interesting views on Go, systems, music, chaos engineering and all kinds of art. Josh Berkus has always been an excellent source on Kubernetes \u0026amp; Postgres. ","date":"1 January 0001","permalink":"https://bobbylikeslinux.net/externallinks/","section":"bobbylikeslinux.net","summary":"\u003ch1 id=\"external-links\" class=\"relative group\"\u003eExternal Links \u003cspan class=\"absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100\"\u003e\u003ca class=\"group-hover:text-primary-300 dark:group-hover:text-neutral-700\" style=\"text-decoration-line: none !important;\" href=\"#external-links\" aria-label=\"Anchor\"\u003e#\u003c/a\u003e\u003c/span\u003e\u003c/h1\u003e\u003ch2 id=\"great-blogs\" class=\"relative group\"\u003eGreat Blogs \u003cspan class=\"absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100\"\u003e\u003ca class=\"group-hover:text-primary-300 dark:group-hover:text-neutral-700\" style=\"text-decoration-line: none !important;\" href=\"#great-blogs\" aria-label=\"Anchor\"\u003e#\u003c/a\u003e\u003c/span\u003e\u003c/h2\u003e\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://blog.edlitmus.info\" target=\"_blank\" rel=\"noreferrer\"\u003eEd\u003c/a\u003e is a rock solid guy, and a serious developer. His blog ranges from software projects to his perspective of the industry. He is also a clown-computing thought leader.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://sounding.com\" target=\"_blank\" rel=\"noreferrer\"\u003eCraquemattic\u003c/a\u003e offers interesting views on Go, systems, music, chaos engineering and all kinds of art.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https:////berkus.org\" target=\"_blank\" rel=\"noreferrer\"\u003eJosh Berkus\u003c/a\u003e  has always been an excellent source on Kubernetes \u0026amp; Postgres.\u003c/li\u003e\n\u003c/ul\u003e","title":""},{"content":"","date":null,"permalink":"https://bobbylikeslinux.net/categories/","section":"Categories","summary":"","title":"Categories"}]