Tag: Kubernetes

  • Kubernetes setting the current namespace

    Kubernetes setting the current namespace

    Kubernetes has become the de facto standard for container orchestration, providing users with robust and efficient tools to manage their containerized applications. One of the essential aspects of Kubernetes is its support for namespaces, which allow for easier organization and management of resources. This article discusses setting the current namespace using the kubectl command-line tool, […]

  • What is a Kubernetes Sidecar Container?

    What is a Kubernetes Sidecar Container?

    One of the most useful patterns in Kubernetes is the Sidecar pattern. But what is a sidecar pattern? Typically a Pod in Kubernetes contains one container only(single container pod). But it is possible for a Pod to contain more than one container. In that case, it is called a multi-container pod.  When another container is […]

  • Reducing 90% in costs with Spot VMs for Machine Learning on Google Kubernetes Engine in GCP

    Reducing 90% in costs with Spot VMs for Machine Learning on Google Kubernetes Engine in GCP

    When running big machine learning training jobs using neural networks, you need a GPU. And let’s be honest, GPUs are expensive and hard to get nowadays with the chip shortage! So it is unlikely that you will have plenty of spare GPUs lying around. This is why it makes sense to rent GPUs on the […]

  • How I migrated all my websites to Google Kubernetes Engine on the cheap using Spot VMs

    How I migrated all my websites to Google Kubernetes Engine on the cheap using Spot VMs

    Today I wanted to share with you a project that has kept me busy throughout the Christmas holidays. I have been migrating all my websites, which were previously scattered across several servers in GCP and AWS to one single cluster using Google Kubernetes Engine.My criteria for this project was to reduce costs as much as […]

  • Kubernetes Commands Cheat Sheet

    Kubernetes Commands Cheat Sheet

    This is part of my Kubernetes cheat sheet. How to restart a Pod in Kubernetes I often want to restart pods without actually having to deploy anything. It can be done quite easily with the kubectl command. To restart a Kubernetes pod, you just need to: How to delete evicted Pods from a namespace This […]

  • How to create a Liveness probe for WordPress in Kubernetes

    How to create a Liveness probe for WordPress in Kubernetes

    You have tried to create an HTTP Liveness probe to check for the state of your WordPress container but you are getting a really strange connection refused error. You are getting something like this: It says connection refused, and you are really confused because you are sure that the WordPress Apache server is listening on […]

  • Azure AppService vs Azure Kubernetes Service

    Azure AppService vs Azure Kubernetes Service

    If you are using Azure and about to select an orchestration service in which to host your applications, you are probably struggling with the following decision: Should I host my application in Azure Kubernetes Service or in Azure AppService? While this decision ultimately depends on the requirements at hand, there are long-term implications for your […]

  • Why are Kubernetes Health Checks useful and, what happens if you don’t have them?

    Why are Kubernetes Health Checks useful and, what happens if you don’t have them?

    Kubernetes Health checks, what are they for and, why are they useful? And what is the difference between a liveness probe, a readiness probe, and a startup probe? These are probably very abstract concepts to you. So before I go straight into explaining these, I think it is better that I share a story from […]

  • What is the difference between a Standard Azure AKS Cluster and a Private AKS Cluster?

    What is the difference between a Standard Azure AKS Cluster and a Private AKS Cluster?

    A Standard Azure Kubernetes Service cluster has a public IP address for the API Server and a Private AKS cluster has a private IP address for its API server endpoint. In both the Standard AKS Cluster and the Private AKS cluster the Worker Nodes have a Private IP address. For those looking for the long […]

  • Deploying WordPress and MySql using Skaffold to Google Kubernetes Engine

    Deploying WordPress and MySql using Skaffold to Google Kubernetes Engine

    In this tutorial, I am going to show you how to deploy WordPress to Google Kubernetes Engine using Gitlab CI and Skaffold. Also, I will show you how to use Gitlab CI to deploy WordPress to multiple environments, by simply creating a new branch in your Gitlab project. WordPress on GKE Series Recap Previously in this […]