Select Page

Kubernetes Exercise #5: Deployments

Exercise InstructionsSolution Here is some yaml for an nginx deployment: apiVersion: apps/v1beta2 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 template: metadata: labels: app: nginx spec: containers:...

Kubernetes Practice Exam

Exercise InstructionsSolution 1. Create a job that calculates pi to 2000 decimal points using the container with the image named perl and the following entry point to the container: [“perl”, “-Mbignum=bpi”, “-wle”, “print...

Kubernetes Exercise #3: Deploy a Pod

Exercise InstructionsSolution Here is some yaml for an nginx deployment: apiVersion: apps/v1beta2 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 template: metadata: labels: app: nginx spec: containers:...

Kubernetes Exercise #2: Deploy a Pod

Exercise InstructionsSolution Pods usually represent running applications in a Kubernetes cluster.  Here is an example of some yaml which defines a pod: apiVersion: v1 kind: Pod metadata: name: alpine namespace: default spec: containers: – name: alpine image:...