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
Developing an url-shortener application and deploying it on k8s

Introduction To enhance my skills in Golang and Kubernetes deployments, I decided to build a small containerized web application with dependencies on a database and a cache. An URL shortener application seemed like a suitable choice, as it fulfills these requirements while remaining simple and practical. The application exposes two endpoints: a POST endpoint to shorten a given URL and a GET endpoint to redirect the shortened URL back to the original one.

  • Go
  • K8s
  • Helm
Wednesday, February 19, 2025 Read
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