Category: Tutorials

  • Kubernetes – Connect To Private Container Registry

    Kubernetes – Connect To Private Container Registry

    Now that you are hosting your own registry (… are you?). You probably want to deploy Kubernetes pods from that registry. For this you need two things: Docker registry credentials saved in a Secret imagePullSecrets in deployment pointing to said Secret First, Create secret: Second, Use secret in in deployment. Example: And you’re done 🍔

  • Docker – Useful CURL:s For Querying Private Registry

    Docker – Useful CURL:s For Querying Private Registry

    Keep it minimal, who needs a fancy GUI for your Docker Registry when you have, CURL? 😉 Get all container images from registry: Example output: List all tags for container image: Example output: TIP, combine the curl with -s and jq for pretty output: Keep it CURL:in 👾

  • Docker – Host Your Own Private Container Registry

    Docker – Host Your Own Private Container Registry

    Docker Hub (hub.docker.com) provides a great and Free service for pushing, and pulling of course, Docker containers. Many of the major software providers use Docker Hub for their primary container distribution, and you yourself can create an account and push your own images. They do, however, only allow one free private repository. This may not…

  • Kubernetes – Quick Pod Shell Access With Kubeshell

    Kubernetes – Quick Pod Shell Access With Kubeshell

    Entering the bash/sh shell in an Kubernetes container can look like this: Or.. You can keep it simple with Kubeshell Press enter and you’re [hacker voice] in. GITHub.com/roubles is the author of kubeshell Easily install with pip: Hack away! 👾

  • MySQL – Calculating Disk Usage Per Database

    MySQL – Calculating Disk Usage Per Database

    The answer usually lies within /var/lib/mysql/[DATABASE]. But the answer can also be found in, you guessed it, information_schema! 😀 Here’s an one-liner for you, that displays database sizes in megabytes (nice long float() included) If gigabytes are more your thing, run the following: Example output: Query on 👾