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 #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:...

Kubernetes Exercise #1: Run a Job

Exercise InstructionsSolution Applications that run to completion inside a pod are called “jobs.”  This is useful for doing batch processing. Most Kubernetes objects are created using yaml. Here is some sample yaml for a job which uses perl to...

How install Kubernetes on RHEL 7. Step by step tutorial

Step by Step how to install Kubernetes on RHEL 7 host So how to install kubernetes. To be honest i tried to do that several times on my virtual machines in vCloud. In production environment. Maybe this a little bit complicated than install on fresh new machine on...