Build a Kubernetes Dashboard in Notion using a go controller
Notion is a web based note-taking software. Its supports all kind of note types like kanban boards, tables, lists, and more. This post will show you how to use the Notion api to generate a live updating Kubernetes Dashboard in Notion using a custom controller in golang to show the currently running pods in a Kubernetes cluster.
The code to the Repository can be found here
Setting up the Notion API To use the Notion API, you need to create a Notion account and create a new integration....
Deploy Uptime Kuma on Kubernetes
Uptime-Kuma is a self-hosted monitoring tool that gains more and more popularity on GitHub.
This post describes how to deploy the Uptime-Kuma on Kubernetes.
Use the following StatefulSet to deploy Uptime-Kuma:
# StatefulSet apiVersion: apps/v1 kind: StatefulSet metadata: name: uptime-kuma namespace: monitoring spec: replicas: 1 serviceName: uptime-kuma-service selector: matchLabels: app: uptime-kuma template: metadata: labels: app: uptime-kuma spec: containers: - name: uptime-kuma image: louislam/uptime-kuma env: - name: UPTIME_KUMA_PORT value: "3001" - name: PORT value: "3001" ports: - name: uptime-kuma containerPort: 3001 protocol: TCP volumeMounts: - name: uptime-kuma-data mountPath: /app/data volumeClaimTemplates: - metadata: name: uptime-kuma-data spec: accessModes: ["ReadWriteOnce"] volumeMode: Filesystem resources: requests: storage: 2Gi storageClassName: <your-storage-class> Make sure to enter a storage class you want to use....
Set up Basic-Auth using Traefik 2 on Kubernetes
Traefik is a modern reverse proxy and load balancer that makes deploying microservices easy. Traefik is natively compliant with Kubernetes, Docker and a lot of other cluster technologies.
Traefik allows the use of middlewares to tweak requests before they are sent to a service. There are several available middlewares in Traefik, some can modify the request, the headers, some are in charge of redirections and some add authentication.
This Post explains how to configure the BasicAuth-Middleware for Traefik 2 in Kubernetes....
Fast local Development using Ko, Golang, and Minikube
ko is a simple, fast container image builder for Go applications. In combination with minikube, it enables an easy local development cycle.
In this post, I will explain how to set up ko to directly build and deploy Golang applications to minikube.
First, we need to start a local minikube cluster. Use the following command to deploy a local cluster and set it as the current kubectl context.
minikube start Ko can build and push containers to all kinds of registries....