Author: root

  • Kubernetes – Port-Forward To Kubernetes Service

    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

    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) 👾

  • Kubernetes – Enable GZip For Nginx Ingress Controller

    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

    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,…