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

The Flask application queries a Redis sidecar for the secret and sends that as a response. That is not ideal, as you won’t send secrets back as…

The sidecar pattern – Container Orchestration with Kubernetes

Sidecars derive their names from motorcycle sidecars. The sidecar does not change the bike’s core functionality and can work perfectly without it. Instead, it adds an extra…

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

Example application – Container Orchestration with Kubernetes-1

We will use the example application we used in Chapter 3, Containerization with Docker, in the Deploying a sample application with Docker Compose section. The source code…

The ambassador pattern – Container Orchestration with Kubernetes

The ambassador pattern derives its name from an ambassador, an envoy representing a country overseas. You can also think of an ambassador as a proxy of a…

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…

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

You can run multiple containers in pods in two ways – running a container as an init container or running a container as a helper container to…

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