Kubernetes Deployments – Managing Advanced Kubernetes Resources

The need for advanced Kubernetes resources In the last chapter, we looked at pods, the basic building blocks of Kubernetes that provide everything for your containers to…

Technical requirements – Managing Advanced Kubernetes Resources

In the previous chapter, we covered Kubernetes and why we need it and then discussed bootstrapping a Kubernetes cluster using MiniKube and KinD. We then looked at…

The adapter pattern – Container Orchestration with Kubernetes

As its name suggests, the adapter pattern helps change something to fit a standard, such as cell phones and laptop adapters, which convert our main power supply…

Example application – Container Orchestration with Kubernetes-2

The following is the initContainers section: initContainers: image: busybox:1.28 command: [‘sh’, ‘-c’, ‘cp -L /config/nginx.conf /etc/nginx/nginx.conf && sed -i “s/ REDIS_HOST/${REDIS_HOST}/g” /etc/nginx/nginx.conf’] env: configMapKeyRef: name: redis-config key:…

Pod multi-container design patterns – Container Orchestration with Kubernetes-2

If we look at the spec section of the manifest file, we’ll see the following: So, let’s go ahead and apply the manifest and watch the pod…

Probes in action – Container Orchestration with Kubernetes

Let’s improve the last manifest and add some probes to create the following nginx-probe.yaml manifest file: … startupProbe: exec: command: readinessProbe: httpGet: path: / port: 80 initialDelaySeconds:…