Overview/Description
Kubernetes uses pods to wrap up one or more containers. The primary objective of deployments is to declare the number of replicas of a pod that should be running at a time and also ensure the pods' availability by recreating them when they are not available. In this course, you'll learn to perform critical pod and deployment tasks, which includes creating a ReplicaSet definition file, using kubectl commands to create a ReplicaSet, verifying management of pods by specific ReplicaSets, removing ReplicaSet-managed pods, and increasing the number of pods when the CPU load gets higher without exceeding five pods. Next, you’ll create a deployment definition file and use the kubectl command to deploy four pods with NGINX. You'll also use the kubectl scale command to scale replicas, create a Kubernetes user account using the X509 client certificate, schedule and launch pods, and taint a node. Moving on, you’ll create a manifest file that creates a pod with a sample container, manually schedule a pod and force a pod to be on a specific node, and use kubectl commands to create a pod and configure environment variables. Finally, you’ll create a secret from files containing a username and password, define environment variables, and mount the secret to a pod. This course is part of a series that aligns with the objectives for the Certified Kubernetes Administrator exam and can be used to prepare for this exam.
create a ReplicaSet definition file, use kubectl command to create a ReplicaSet, and verify that a particular pod is managed by this ReplicaSet and not by another controller
remove a pod that is managed by a ReplicaSet by changing its label
use a Kubectl command that uses Horizontal Pod Autoscaler with the ReplicaSet to increase the number of pods when the CPU load gets higher without exceeding five pods
create a deployment definition file and use the kubectl command to deploy four pods with NGINX as the hosted application and use the kubectl scale command to scale replicas
recall Kubernetes scheduling concepts and the role of Kubernetes Scheduler in container orchestration
create a Kubernetes user account using the X509 client certificate
demonstrate how to use label selectors to schedule pods and use anti-affinity to launch a pod on a different node
use the kubectl taint command to taint a node with type=special:NoSchedule, make the node unschedulable, and create a pod to tolerate the taint
create a manifest file that creates a pod with a sample container that requests 2G of memory with half a CPU and has limits at 3G of memory with a whole CPU
manually schedule a pod and force a pod to be on a specific node without using the scheduler
configure a manifest file and use the kubectl command to create a pod with the latest available images running asleep for 1 hour, give it an environment variable titled "TEST" with the value "sample", and execute a command in the container to show that it has the configured environment variable
create a secret from files containing a username with a password, use the secret to define environment variables, and mount the secret to a pod to admin-cred folder