Select Page

Power of Kubernetes

Kubernetes Exercise #5: Deployments

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: - name: nginx image: nginx:1.7.9...

Kubernetes Practice Exam

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 bpi(2000)"] Once the job has completed, save the result to your home...

Kubernetes Exercise #4: Using ConfigMaps to Set Environment Variables

Write yaml for a ConfigMap that will create a data key called "myKey" with the value "myValue" Create the ConfigMap using the kubectl command-line tool Write a pod yaml to pass the ConfigMap data to the pod, so that the pod can use it as an environment variable Create...

Kubernetes Exercise #2: Deploy a Pod

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: alpine command: - sleep - "3600"...

Kubernetes Exercise #1: Run a Job

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 calculate pi to 2000 digits and then stops....

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

Completely remove Kubernetes from machine on Centos

  How to completely remove Kubernetes from your host machine on Centos Just quick answer on question, just type this commands: sudo docker rm `docker ps -a -q` sudo docker rmi `docker images -q` sudo kubeadm reset sudo yum remove kubeadm kubectl kubelet...