Alex's cloud blog
  • Home
  • About
  • Projects
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
  • Tags
  • Alerting
  • Ansible
  • AWS
  • BGP
  • Cert
  • CI/CD
  • CLI
  • CNCF
  • Conference
  • Config
  • DNS
  • Fix
  • Github Actions
  • Go
  • Governance
  • Grafana
  • Helm
  • Homelab
  • K3s
  • K8s
  • Kubernetes
  • Networking
  • Operator
  • Packer
  • RaspberryPi
  • Security
  • Storage
  • VPN
Hero Image
Writing a Go CLI for deploying Kubernetes

Introduction A few months ago, I wrote a set of shell scripts to bootstrap Kubernetes on Multipass VMs. While they worked well, I found it challenging to present them in a user-friendly way. I wanted a clean solution to package these scripts into a single binary, complete with self-contained documentation, that people could easily install and use without cloning a repository. After some research, I discovered Cobra, a popular Go framework for creating CLIs. Seeing that well-known applications like Kubernetes, Hugo, and GitHub CLI use Cobra, I decided to give it a try.

  • Go
  • CLI
  • Kubernetes
Monday, July 22, 2024 Read
Navigation
  • About
  • Projects
Contact me:
  • alexstan.cloud@gmail.com
  • andrei-don

Liability Notice: The views and opinions expressed on this blog are my own. Any code shared here is for educational purposes only and is not intended for production use. I do not guarantee that all content will be updated to reflect the latest technology changes.


Toha Theme Logo Toha
© 2025 Alex Stan Copyright.
Powered by Hugo Logo