Helm Charts upgrade script

In my homelab I’m running small Kubernetes cluster using k3s and install applications on it using Helm Charts. I don’t use gitops and for now I’m using Rancher to mostly navigate through all different types of Kubernetes objects. For a lot of Charts I’m using TrueCharts that contains ~800 different Charts and they’re using common libraries, templates and enjoy using it a lot. Because of that Charts are updated not only when docker image of application is being updated but also when common library is updated it could update a lot of Charts, so I get a lot of Helm Charts upgrades.

Upgrading every Helm Chart manually inside Rancher is fine when you need to update few of them every month. But with number of installed Helm Charts multiplied by frequency they’re updated it wasn’t feasible for me to do it that way. So I’ve built simple script that:

  • Iterates through helm ls, skips some exclusions (e.g. for rancher helm I run it manually because I update it together with k3s version)
  • checks if new Chart version is present
  • checks rollout status and ingress HTTP codes (to not upgrade application that’s not in healthy state)
  • ask if upgrade should be made (until --yes is not used)
  • check rollout status and ingress HTTP codes after upgrade (to know if maybe new Chart version broke something)

I’m not running it with --yes but still confirm every upgrade, at least for now. It saved me a lot of time and nerves. (;

You can check it’s code on GitHub.

Photos from Flickr on your craiglist/ebay listing

When I wan to sell some pre-owned stuff on ebay/craiglist/allegro/whatever I want it to have pictures of what I sell. I host my pictures on flickr and usually copied urls of them one-by-one to have thumbnail url and full size url in simple  html. I did 27 pictures of my MacBook and there’s no way that I’m gonna spend ~15 minutes coping those links instead code it in 2h, right? #overengineeredSolutions

 

Source code available at GitHub.

If you want to give me five and/or listen to my presentation in February (2016)

This would be (probably) my last presentation of “Lessons learned from scaling software” . I’m satisfied with last one I did on Devoxx, aside from low energy level (as caffeine kicked in way too late). This delivery will be on CareerCon IT carrier fairs and will be held in Polish. You can also join presentation by other geeks from our Company: Maciej just after me and Rafał during last conference slot.
Continue reading

Proof of Concept for scheduling a medical appointment automatically

When it comes to scheduling medical appointments one frustration comes up more often than orders: queues. If you happen to have electronic registration it makes it less painful but still doesn’t solve the problem. With our Kiddo we’d to visit all kinds of specialists and this frustration turned out too apparent for me to ignore and I’d to let my geekiness into to the wild. Continue reading