-
Using kubectl with more for easy scrolling
Sometimes kubectl will return output that is just to long to handle. With some integrated terminals cutting the output after a certain length (Iam looking at you Visual Studio Code), its nice to be able to scroll throughout kubectl output much more easily. For this use case the more tool is easily used https://wiki.ubuntuusers.de/more/ # with ... Read More
-
Only allowing cloudflare servers ips for your server
The chances are high that if you are using cloudflare to proxy your servers, that you will not have much traffic on them that is not originating from cloudflare. In order to secure your server even further, you could block any external IP Adress that is not owned by cloudflare, or your own VPN. This proves to be an effective way to block DOS th... Read More
-
Resetting time in a docker container on Windows
Often after hibernation your docker containers will be out of sync, which will create problems with everything expiration based. I experienced this problem, after my laptop came out of hibernation and I had just setup a fresh kubernetes cluster, which, because of its cert-based auth, showed that my certificate was set to the future and therefore... Read More
-
Getting your kubeconfig from k3s
the k3s.yaml K3s will store its kubeconfig in /etc/rancher/k3s/k3s.yaml and is used to configure access to the Kubernetes cluster. Depending on how you are going to use your cluster, you are going to need it to configure your local installed version of kubectl. It should look something like this: apiVersion: v1 clusters: - cluster: certif... Read More
-
Ping a host until he responds
When you are playing with terraform or any other provisioning software for a while, you will most likely run into an issue rather sooner than later, where you will have to wait for a host to reboot. Sleeping during your execution steps is one thing, but what if there was a better way? There actually is and it is directly integrated into ping: h... Read More