CKAD Prep Part 2 – Kubernetes Pods

Kubernetes Pods A Pod is the basic building block of an application running in Kubernetes. A Pod encapsulates one or more containers and a set of resources shared by those containers.  All containers that run in a Kubernetes cluster run inside a Pod. Creating a Pod Below is a sample Pod definition. To apply this to the cluster run kubectl apply -f demo-pod.yml apiVersion: v1 kind: Pod metadata: name: demo-pod labels: app: demo-app spec: containers: - name: demo-app-container image: busybox command: ['sh', '-c', 'echo hello CKAD & sleep 3600'] apiVersion: v1 - version of the Kubernetes API this yaml is compatible with kind: Pod - [...]

By |2021-06-23T22:23:56+01:00April 25th, 2021|Kubernetes|0 Comments

Spring Cloud Config Server on Kubernetes – Part 2

This is the second of a two part article about building centralised configuration with Spring Cloud Config Server. In this post we'll take the the two Spring Boot services created in part one and run them on Kubernetes. We'll initially deploy to a local cluster before stepping things up and deploying to Azures manged Kubernetes Service, AKS. By the end of this post you should have two Spring Boot services deployed to an AKS cluster as shown in the diagram below. Source Code The full source code for this post (and part one) is available on Github. If you want to get up and running [...]

By |2021-04-21T21:56:54+01:00April 20th, 2021|Kubernetes|1 Comment
Go to Top