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 – 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
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
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 ð¾