Kubernetes – Port-Forward To Kubernetes Service
Kubernetes service only available inside the cluster? Do you need to connect and test something? Port-forward from your client to the cluster! Only using kubectl. The syntax is as follows: So let’s say you want to connect to a MySQL Service only available in the cluster network. And the service is called “mysql-service”: The MySQL…
CURL Print Only Header
Sometimes you need to debug, or test, some web-server and you only need to read the response header from your request. Curling and scrolling, or curling and less:ing… nah. All you need to remember is -sIX GET: Example output: Watch your head(er) ð¾
Roundcube – Increase Login Session Lifetime/Timeout
The default Login Session Lifetime, otherwise know as Login Timeout, is waaaaay to short. You login, check your email, procrastinate about some other things, and then… You have been logged out :/ Here’s how to increase it: First, open config.inc.php in an editor Second, Add the following to the end of file 1440 minutes =…
Kubernetes – Enable GZip For Nginx Ingress Controller
It may feel obvious, like something that just should… be there? I am of course speaking of GZip compression for NGinx Ingress on Kubernetes… Duh. Here’s how to enable it (once deployed): First, edit the configmap Second, Add the following :wq to save This should GZIP compress everything Compress all the things ð¾
Docker – Build Image on GITHub And Push To Private Registry
Hosting your own registry is one thing, but deploying a “runner” or similar (including all of the associated infrastructure) may be overkill for your project. Luckily, GITHub (Mirco$oft) has you covered. All you need is: A project with Dockerfile Hosted on GITHub in a repo A Docker registry (private or DockerHUB account is fine) First,…