Blog Archives

Kubernetes HA Cluster installation guide

Hardware overview

Hostname Specs IP
k8s-lb01 1 CPU, 1GB RAM, 10GB Disk 192.168.11.10
k8s-lb02 1 CPU, 1GB RAM, 10GB Disk 192.168.11.11
k8s master VIP 192.168.11.12
k8s-master01 2 CPU, 4GB RAM, 30GB disk 192.168.11.13
k8s-master02 2 CPU, 4GB RAM, 30GB disk 192.168.11.14
k8s-master03 2 CPU, 4GB RAM, 30GB disk 192.168.11.15
k8s-node01 2 CPU, 4GB RAM, 30GB disk 192.168.11.16
k8s-node02 2 CPU, 4GB RAM, 30GB disk 192.168.11.17
k8s-node02 2 CPU, 4GB RAM, 30GB disk 192.168.11.18
k8s IP pool 192.168.11.20-30
  • All servers run Ubuntu 18.04.1 LTS.
  • The loadbalancers will run keepalived with HAProxy.

Kubernetes setup:

Version: 1.12.0 Docker Version: 18.06.0 Extra Plugins used:

Create a DNS record that point to 192.168.11.12 (e.g. k8s.domain.com) kubectl and kubeadm will use this address to join/manage the cluster (meer…)

Monitoring NTFS diskspace with Nagios

After struggling for a while on how to get alerts from nagios when the diskspace on a Microsoft Windows server runs low, i decided to write a simple shell script.

Requirements:

  • A server running linux with Nagios installed (tested on Ubuntu 10.4.3 LTS with Nagios 3.3.1)
  • snmputils installed (the script uses snmpwalk and snmpget)

(meer…)

Archiving IIS Logs with Powershell

A commonly asked question about IIS I read many times is: is there an easy way to archive IIS logs. After reading many forums and blogs I couldn’t find something that does this job for me.

This script uses 7zip to compress the files, and since logfiles are plain-text only, the compress-ratio is pretty good.

Requirements:

  • Windows Powershell modules installed
  • 7zip installed (http://www.7-zip.org/)

(meer…)

Welcome to my new Blog !

Hello world !

I assume that when you’re reading this post, you have found your way to my personal blog!

On this blog I’ll try to keep you informed about what I do in daily life, and share some easy tricks with you that could make the life of a sysadmin a lot easier !

Have fun reading !