raynix 筆記

raynix 筆記

  • Home
  • WordPress Hosting
  • Side Quests
Illustration of a bird flying.
  • How to Do Kubernetes Cronjobs with Sidecars Properly in 2024

    TL; DR: Since Kubernetes v1.28, there’s no need to do fancy bash scripts to kill your sidecar when the main container finishes. So using sidecars in Kubernetes Jobs or Cronjobs are now much simpler and more elegant too. For example, I wanted to run a database backup job in a GKE + Cloud SQL environment,…

    July 26, 2024
    Systems Admin
    cronjob, kubernetes, sidecar
  • Solved: Google Managed Prometheus Kept Crashing

    Context: I use Google Cloud Managed Service for Prometheus(GMP I call it for convenience) as the central piece of my observability stack. In a nut shell it’s Prometheus managed by Google. GMP runs a collector Prometheus pod in each node, as a DaemonSet. The collector Prometheus scrapes metrics within the node and forwards them to…

    July 15, 2024
    Systems Admin
    Google Cloud, prometheus
  • Coloured Diff With Python

    TL; DR: my simple Python code to output a result of text comparison in git-diff style Here’s the code snippet in Python. 🙂

    July 9, 2024
    Python & Frameworks
    diff, Python
  • How to Use Pod Anti-Affinity in Kubernetes

    By default the Kubernetes scheduler distributes pods of a replica set evenly to all nodes, if no taints are present of course. So why or when do we need pod anti-affinity? 1 scenario I can think of is like this: Without any advanced tuning such as pod anti-affinity, the replicas can possibly be scheduled like…

    July 4, 2024
    Systems Admin
    kubernetes
  • Monitoring MySQL with mysqld-exporter

    TL; DR: I use mysqld-exporter with Prometheus to monitor my MySQL server. The mysqld-exporter runs as a container in my Kubernetes cluster. A sample manifest looks like: 🙂

    June 29, 2024
    Systems Admin
    mysql, prometheus
  • 4 Years Since Working From Home Started

    Although the COVID-19 pandemic made countless things worse, it still had a silver-lining: working from home(or remote jobs) as a norm. 2020 It still feels like a fresh memory when I recall how the working from home transition started. Before 2020, it was a blessing if one could work from home 1 day a week.…

    June 14, 2024
    Emerald Dreams
    Remote Job
  • How to Upgrade a Kubernetes Cluster with `kubeadm` in 2024

    TL; DR: I upgraded my Garage Kubernetes Lab cluster from 1.28 to 1.29 recently. Here’s how I did it. Upgrading the Control Plane First, the Linux package repository needs to be updated to include kubeadm 1.29. This can be done like this(My cluster is built with Ubuntu 22.04, for other Linux distributions please refer to…

    June 11, 2024
    Systems Admin
    kubeadm, kubernetes
  • How to Upgrade Istio the Git-Ops Way

    Istio 1.17 has been running really well in my Garage Kubernetes lab, but I thought it’s time to give it an upgrade. It was installed and configured using istioctl utility last time when I bootstrapped the cluster. Since I’ve automated a lot of Kubernetes resources using ArgoCD I would like to upgrade Istio the git-ops…

    June 4, 2024
    Systems Admin
    ArgoCD, istio, kubernetes
←Previous Page
1 … 3 4 5 6 7 … 110
Next Page→
  • Eric Lin’s Blog
  • Eddie Wang’s Blog at WP
  • GoalKeeper’s Blog

raynix 筆記

Just another WordPress blog

  • Facebook
  • Twitter
  • Instagram

Proudly powered by WordPress