KCAD 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 KCAD & sleep 3600'] apiVersion: v1 - version of the Kubernetes API this yaml is compatible with kind: Pod - [...]