-
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
-
Using curl with a fake host header
In order to work with fake resources on your localhost you sometimes have to fake your hostname. With curl you can simply do that by providing your own domain resolution into the request: $ curl --resolve yourdomain.com:443:127.0.0.1 https://yourdomain.com/ Alternatively you can do the same thing on port 80 without https: $ curl --resolve yo... Read More