From 891c9c69fe36fab0a19d1e4b05193ccabd6604ee Mon Sep 17 00:00:00 2001 From: abregman Date: Sun, 5 Sep 2021 00:59:55 +0300 Subject: [PATCH] Add a couple of Kubernetes questions and exercises In addition, changed the order of some Linux questions. --- README.md | 435 +++++++++++------- exercises/kubernetes/replicaset_01.md | 5 +- exercises/kubernetes/replicaset_02.md | 12 + exercises/kubernetes/replicaset_03.md | 14 + .../solutions/replicaset_01_solution.md | 62 +++ .../solutions/replicaset_02_solution.md | 62 +++ .../solutions/replicaset_03_solution.md | 61 +++ 7 files changed, 480 insertions(+), 171 deletions(-) create mode 100644 exercises/kubernetes/replicaset_02.md create mode 100644 exercises/kubernetes/replicaset_03.md create mode 100644 exercises/kubernetes/solutions/replicaset_01_solution.md create mode 100644 exercises/kubernetes/solutions/replicaset_02_solution.md create mode 100644 exercises/kubernetes/solutions/replicaset_03_solution.md diff --git a/README.md b/README.md index de9a20a..a136415 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ :information_source:  This repo contains questions and exercises on various technical topics, sometimes related to DevOps and SRE :) -:bar_chart:  There are currently **1712** questions +:bar_chart:  There are currently **1726** questions :books:  To learn more about DevOps and SRE, check the resources in [devops-resources](https://github.com/bregman-arie/devops-resources) repository @@ -2011,7 +2011,7 @@ Learn more [here](https://aws.amazon.com/codedeploy) Explain what is CloudFormation
-#### AWS Misc +#### AWS - Misc
Which AWS service you have experience with that you think is not very common?
@@ -2778,9 +2778,44 @@ find . -iname "*.yaml" -exec sed -i "s/1/2/g" {} \;
-Generate 8 digit random number
+How to check which commands you executed in the past?
-shuf -i 9999999-99999999 -n 1 +history command or .bash_history file +
+ +
+Running the command df you get "command not found". What could be wrong and how to fix it?
+ +

+Most likely the default/generated $PATH was somehow modified or overridden thus not containing /bin/ where df would normally go. +This issue could also happen if bash_profile or any configuration file of your interpreter was wrongly modified, causing erratics behaviours. +You would solve this by fixing your $PATH variable: + +As to fix it there are several options: + +1. Manually adding what you need to your $PATH PATH="$PATH":/user/bin:/..etc +2. You have your weird env variables backed up. +3. You would look for your distro default $PATH variable, copy paste using method #1 + +Note: There are many ways of getting errors like this: if bash_profile or any configuration file of your interpreter was wrongly modified; causing erratics behaviours, +permissions issues, bad compiled software (if you compiled it by yourself)... there is no answer that will be true 100% of the time. + +

+
+ +
+How do you schedule tasks periodically?
+ +You can use the commands cron and at. +With cron, tasks are scheduled using the following format: + +*/30 * * * * bash myscript.sh Executes the script every 30 minutes. + + + +The tasks are stored in a cron file, you can write in it using crontab -e + +Alternatively if you are using a distro with systemd it's recommended to use systemd timers.
#### Linux FHS @@ -2825,47 +2860,6 @@ The root of the filesystem. The beginning of the tree. In which path can you find the system devices (e.g. block storage)?
-
-Running the command df you get "command not found". What could be wrong and how to fix it?
- -

-Most likely the default/generated $PATH was somehow modified or overridden thus not containing /bin/ where df would normally go. -This issue could also happen if bash_profile or any configuration file of your interpreter was wrongly modified, causing erratics behaviours. -You would solve this by fixing your $PATH variable: - -As to fix it there are several options: - -1. Manually adding what you need to your $PATH PATH="$PATH":/user/bin:/..etc -2. You have your weird env variables backed up. -3. You would look for your distro default $PATH variable, copy paste using method #1 - -Note: There are many ways of getting errors like this: if bash_profile or any configuration file of your interpreter was wrongly modified; causing erratics behaviours, -permissions issues, bad compiled software (if you compiled it by yourself)... there is no answer that will be true 100% of the time. - -

-
- -
-How do you schedule tasks periodically?
- -You can use the commands cron and at. -With cron, tasks are scheduled using the following format: - -*/30 * * * * bash myscript.sh Executes the script every 30 minutes. - - - -The tasks are stored in a cron file, you can write in it using crontab -e - -Alternatively if you are using a distro with systemd it's recommended to use systemd timers. -
- -
-How to check which commands you executed in the past?
- -history command or .bash_history file -
- #### Linux - Permissions
@@ -3011,6 +3005,11 @@ Should be `x=2` How do you check variable length?
+
+Generate 8 digit random number
+ +shuf -i 9999999-99999999 -n 1 +
Explain the following code: @@ -3173,67 +3172,7 @@ The operating system executes the kernel in protected memory to prevent anyone f Applications can access system resources and indirectly the kernel space by making what is called "system calls".
-#### Linux - Namespaces - -
-What types of namespaces are there in Linux?
- - - Process ID namespaces: these namespaces include independent set of process IDs - - Mount namespaces: Isolation and control of mountpoints - - Network namespaces: Isolates system networking resources such as routing table, interfaces, ARP table, etc. - - UTS namespaces: Isolate host and domains - - IPC namespaces: Isolates interprocess communications - - User namespaces: Isolate user and group IDs - - Time namespaces: Isolates time machine -
- -
-True or False? In every PID (Process ID) namespace the first process assigned with the process id number 1
- -True. Inside the namespace it's PID 1 while to the parent namespace the PID is a different one. -
- -
-True or False? In a child PID namespace all processes are aware of parent PID namespace and processes and the parent PID namespace has no visibility of child PID namespace processes
- -False. The opposite is true. Parent PID namespace is aware and has visibility of processes in child PID namespace and child PID namespace has no visibility as to what is going on in the parent PID namespace. -
- -
-True or False? By default, when creating two separate network namespaces, a ping from one namespace to another will work fine
- -False. Network namespace has its own interfaces and routing table. There is no way (without creating a bridge for example) for one network namespace to reach another. -
- -
-True or False? With UTS namespaces, processes may appear as if they run on different hosts and domains while running on the same host
- -True -
- -
-True or False? It's not possible to have a root user with ID 0 in child user namespaces
- -False. In every child user namespace, it's possible to have a separate root user with uid of 0. -
- -
-What time namespaces are used for?
- -In time namespaces processes can use different system time. -
- -#### Linux - Virtualization - -
-What virtualization solutions are available for Linux?
-
- -
-What is KVM?
-
- -#### Linux SSH +#### Linux - SSH
What is SSH? How to check if a Linux server is running SSH?
@@ -4085,63 +4024,64 @@ lsblk True. Only in kernel space they have full access to hardware resources.
-#### Linux - Random +#### Linux - Namespaces
-Give 5 commands which are two letters long
+What types of namespaces are there in Linux?
-ls, wc, dd, df, du, ps, ip, cp, cd ... + - Process ID namespaces: these namespaces include independent set of process IDs + - Mount namespaces: Isolation and control of mountpoints + - Network namespaces: Isolates system networking resources such as routing table, interfaces, ARP table, etc. + - UTS namespaces: Isolate host and domains + - IPC namespaces: Isolates interprocess communications + - User namespaces: Isolate user and group IDs + - Time namespaces: Isolates time machine
-What ways are there for creating a new empty file?
+True or False? In every PID (Process ID) namespace the first process assigned with the process id number 1
- * touch new_file - * echo "" > new_file +True. Inside the namespace it's PID 1 while to the parent namespace the PID is a different one.
-How `cd -` works? How does it knows the previous location?
+True or False? In a child PID namespace all processes are aware of parent PID namespace and processes and the parent PID namespace has no visibility of child PID namespace processes
-$OLDPWD +False. The opposite is true. Parent PID namespace is aware and has visibility of processes in child PID namespace and child PID namespace has no visibility as to what is going on in the parent PID namespace.
-List three ways to print all the files in the current directory
+True or False? By default, when creating two separate network namespaces, a ping from one namespace to another will work fine
-* ls -* find . -* echo * +False. Network namespace has its own interfaces and routing table. There is no way (without creating a bridge for example) for one network namespace to reach another.
-How to count the number of lines in a file? What about words?
+True or False? With UTS namespaces, processes may appear as if they run on different hosts and domains while running on the same host
+ +True
-You define x=2 in /etc/bashrc and x=6 ~/.bashrc you then login to the system. What would be the value of x?
+True or False? It's not possible to have a root user with ID 0 in child user namespaces
+ +False. In every child user namespace, it's possible to have a separate root user with uid of 0.
-What is the difference between man and info?
+What time namespaces are used for?
-A good answer can be found [here](https://askubuntu.com/questions/9325/what-is-the-difference-between-man-and-info-documentation) +In time namespaces processes can use different system time. +
+ +#### Linux - Virtualization + +
+What virtualization solutions are available for Linux?
-Explain "environment variables". How do you list all environment variables?
-
- -
-How to create your own environment variables?
- -`X=2` for example. But this will persist to new shells. To have it in new shells as well, use `export X=2` -
- -
-What a double dash (--) mean?
- -It's used in commands to mark the end of commands options. One common example is when used with git to discard local changes: `git checkout -- some_file` +What is KVM?
#### Linux - AWK @@ -4442,7 +4382,68 @@ MemAvailable - The amount of available memory for new workloads (without pushing * Software/Packages Management -#### Linux Misc +#### Linux - Misc + +
+Name 5 commands which are two letters long
+ +ls, wc, dd, df, du, ps, ip, cp, cd ... +
+ +
+What ways are there for creating a new empty file?
+ + * touch new_file + * echo "" > new_file +
+ +
+How `cd -` works? How does it knows the previous location?
+ +$OLDPWD +
+ +
+List three ways to print all the files in the current directory
+ +* ls +* find . +* echo * +
+ +
+How to count the number of lines in a file? What about words?
+
+ +
+You define x=2 in /etc/bashrc and x=6 ~/.bashrc you then login to the system. What would be the value of x?
+
+ +
+What is the difference between man and info?
+ +A good answer can be found [here](https://askubuntu.com/questions/9325/what-is-the-difference-between-man-and-info-documentation) +
+ +
+Explain "environment variables". How do you list all environment variables?
+
+ +
+What is a TTY device?
+
+ +
+How to create your own environment variables?
+ +`X=2` for example. But this will persist to new shells. To have it in new shells as well, use `export X=2` +
+ +
+What a double dash (--) mean?
+ +It's used in commands to mark the end of commands options. One common example is when used with git to discard local changes: `git checkout -- some_file` +
Wildcards are implemented on user or kernel space?
@@ -4462,8 +4463,6 @@ MemAvailable - The amount of available memory for new workloads (without pushing What is User-mode Linux?
-#### Linux Nerds -
Under which license Linux is distributed?
@@ -5588,8 +5587,9 @@ The primary difference between containers and VMs is that containers allow you t multiple workloads on the operating system while in the case of VMs the hardware is being virtualized to run multiple machines each with its own OS. You can also think about it as containers are for OS-level virtualization while VMs are for hardware virtualization. -* Containers don't require an entire guest operating system as VMs. Containers share the system's kernel as opposed to VMs -* It usually takes a few seconds to set up a container as opposed to VMs which can take minutes or at least more time than containers as there is an entire OS to boot and initialize as opposed to container where you mainly lunch the app itself +* Containers don't require an entire guest operating system as VMs. Containers share the system's kernel as opposed to VMs. They isolate themselves via the use of namespaces and cgroups +* It usually takes a few seconds to set up a container as opposed to VMs which can take minutes or at least more time than containers as there is an entire OS to boot and initialize as opposed to containers which has share of the underlying OS +* Virtual machines considered to be more secured than containers
@@ -5609,7 +5609,7 @@ You should choose containers when:
How container achieve isolation from the rest of the system?
-Through the use of namespaces. Linux kernel has several types of namespaces: +Through the use of namespaces and cgroups. Linux kernel has several types of namespaces: - Process ID namespaces: these namespaces include independent set of process IDs - Mount namespaces: Isolation and control of mountpoints @@ -5835,6 +5835,8 @@ Because each container has its own writable container layer, and all changes are | "Killing" Containers | Pods | [Exercise](exercises/kubernetes/killing_containers.md) | [Solution](exercises/kubernetes/solutions/killing_containers.md) | Creating a Service | Service | [Exercise](exercises/kubernetes/services_01.md) | [Solution](exercises/kubernetes/solutions/services_01_solution.md) | Creating a ReplicaSet | ReplicaSet | [Exercise](exercises/kubernetes/replicaset_01.md) | [Solution](exercises/kubernetes/solutions/replicaset_01_solution.md) +| Operating ReplicaSets | ReplicaSet | [Exercise](exercises/kubernetes/replicaset_02.md) | [Solution](exercises/kubernetes/solutions/replicaset_02_solution.md) +| ReplicaSets Selectors | ReplicaSet | [Exercise](exercises/kubernetes/replicaset_03.md) | [Solution](exercises/kubernetes/solutions/replicaset_03_solution.md) ### Kubernetes Self Assesment @@ -5869,11 +5871,36 @@ Read more [here](https://www.redhat.com/en/topics/containers/what-is-a-kubernete
When or why NOT to use Kubernetes?
- - If you deploy applications using container and you need to manage scaling, rolling out updates, etc. You should use Kubernetes + - If you deploy applications using containers and you need to manage scaling, rolling out updates, etc. You probably want to use Kubernetes - If you manage low level infrastructure or baremetals, Kubernetes is probably not what you need or want
-#### Kubernetes Architecture +
+What Kubernetes objects are there?
+ + * Pod + * Service + * ReplicationController + * ReplicaSet + * DaemonSet + * Namespace + * ConfigMap + ... +
+ +
+What fields are mandatory with any Kubernetes object?
+ +metadata, kind and apiVersion +
+ +
+What is kubectl?
+ +Kubectl is the Kubernetes command line tool that allows you to run commands against Kubernetes clusters. For example, you can use kubectl to deploy applications, inspect and manage cluster resources, and view logs. +
+ +#### Kubernetes - Cluster
What is a Node?
@@ -5892,12 +5919,6 @@ The master coordinates all the workflows in the cluster: * Rolling out new updates
-
-What is kubectl?
- -Kubectl is the Kubernetes command line tool that allows you to run commands against Kubernetes clusters. For example, you can use kubectl to deploy applications, inspect and manage cluster resources, and view logs. -
-
Which command will list the nodes of the cluster?
@@ -6210,13 +6231,13 @@ The pod related to the deployment will terminate and the replicaset will be remo Using a Service.
-#### Kubernetes - Service +#### Kubernetes - Services
What is a Service in Kubernetes?
-"An abstract way to expose an application running on a set of Pods as a network service." - read more [here](https://kubernetes.io/docs/concepts/services-networking/service) -In simpler words, it allows you to expose the service by attaching permanent IP address for example to a certain pod. +"An abstract way to expose an application running on a set of Pods as a network service." - read more [here](https://kubernetes.io/docs/concepts/services-networking/service)
+In simpler words, it allows you to add an internal or external connectivity to a certain application running in a container.
@@ -6236,22 +6257,35 @@ True More on this topic [here](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types)
+
+What is the default service type in Kubernetes and what is it used for?
+ +The default is ClusterIP and it's used for exposing a port internally. It's useful when you want to enable internal communication between Pods and prevent any external access. +
+
How to get information on a certain service?
-kubctl describe service [service_name] +kubctl describe service
-How to verify that a certain service forwards the requests to a pod
+What the following command does? + +``` +kubectl expose rs some-replicaset --name=replicaset-svc --target-port=2017 --type=NodePort +``` +
+ +It exposes a ReplicaSet by creating a service called 'replicaset-svc'. The exposed port is 2017 and the service type is NodePort which means it will be reachable externally. +
+ +
+How to verify that a certain service configured to forward the requests to a given pod
Run `kubectl describe service` and if the IPs from "Endpoints" match any IPs from the output of `kubectl get pod -o wide`
-
-What is the difference between an external and an internal service?
-
-
How to turn the following service into an external one? @@ -6435,37 +6469,53 @@ It defines a replicaset for Pods whose type is set to "backend" so at any given
What is the purpose of ReplicaSet?
-A ReplicaSet's purpose is to maintain a stable set of replica Pods running at any given time. As such, it is often used to guarantee the availability of a specified number of identical Pods. +[kubernetes.io](https://kubernetes.io/docs/concepts/workloads/controllers/replicaset): "A ReplicaSet's purpose is to maintain a stable set of replica Pods running at any given time. As such, it is often used to guarantee the availability of a specified number of identical Pods." + +In simpler words, a ReplicaSet will ensure the specified number of Pods replicas is running for a selected Pod. If there are more Pods than defined in the ReplicaSet, some will be removed. If there are less than what is defined in the ReplicaSet then, then more replicas will be added.
-How a ReplicaSet works?
+What will happen when a Pod, created by ReplicaSet, is deleted directly with kubectl delete po ...?
-A ReplicaSet is defined with fields, including a selector that specifies how to identify Pods it can acquire, a number of replicas indicating how many Pods it should be maintaining, and a pod template specifying the data of new Pods it should create to meet the number of replicas criteria. - -A ReplicaSet then fulfills its purpose by creating and deleting Pods as needed to reach the desired number. When a ReplicaSet needs to create new Pods, it uses its Pod template. +The ReplicaSet will create a new Pod in order to reach the desired number of replicas.
-What happens when a replica dies?
+True or False? If a ReplicaSet defines 2 replicas but there 3 Pods running matching the ReplicaSet selector, it will do nothing
+ +False. It will terminate one of the Pods to reach the desired state of 2 replicas.
-What is the default number of replicas if not specified?
+Describe the sequence of events in case of creating a ReplicaSet
-1 +* The client (e.g. kubectl) sends a request to the API server to create a ReplicaSet +* The Controller detects there is a new event requesting for a ReplicaSet +* The controller creates new Pod definitions (the exact number depends on what is defined in the ReplicaSet definition) +* The scheduler detects unassigned Pods and decides to which nodes to assign the Pods. This information sent to the API server +* Kubelet detects that two Pods were assigned to the node it's running on (as it constantly watching the API server) +* Kubelet sends requests to the container engine, to create the containers that are part of the Pod +* Kubelet sends a request to the API server to notify it the Pods were created
-How to list all the ReplicaSets?
+How to list ReplicaSets in the current namespace?
kubectl get rs
-What happens when for example the value of replicas is 2 but there are more than 2 Pods running that match the selector?
+Is it possible to delete ReplicaSet without deleting the Pods it created?
-It will terminate some of them in order to reach a state where only 2 Pods are running. +Yes, with `--cascase=false`. + +`kubectl delete -f rs.yaml --cascade=false` +
+ +
+What is the default number of replicas if not explicitly specified?
+ +1
@@ -6475,7 +6525,52 @@ NAME DESIRED CURRENT READY AGE web 2 2 0 2m23s

-The replicaset `web` has 2 replicas. It seems that containers are not yet running is the value of READY is 0. It might due to natural reasons or due to an error. Running `kubectl describe po POD_NAME` or `kubectl logs POD_NAME` can give us more information. +The replicaset `web` has 2 replicas. It seems that the containers inside the Pod(s) are not yet running since the value of READY is 0. It might be normal since it takes time for some containers to start running and it might be due to an error. Running `kubectl describe po POD_NAME` or `kubectl logs POD_NAME` can give us more information. +
+ +
+You run kubectl get rs and while DESIRED is set to 2, you see that READY is set to 0. What are some possible reasons for it to be 0?
+ + * Images are still being pulled + * There is an error and the containers can't reach the state "Running" +
+ +
+True or False? Pods specified by the selector field of ReplicaSet must be created by the ReplicaSet itself
+ +False. The Pods can be already running and initially they can be created by any object. It doesn't matter for the ReplicaSet and not a requirement for it to acquire and monitor them. +
+ +
+True or False? In case of a ReplicaSet, if Pods specified in the selector field don't exists, the ReplicaSet will wait for them to run before doing anything
+ +False. It will take care of running the missing Pods. +
+ +
+In case of a ReplicaSet, Which field is mandatory in the spec section?
+ +The field `template` in spec section is mandatory. It's used by the ReplicaSet to create new Pods when needed. +
+ +
+You've created a ReplicaSet, how to check whether the ReplicaSet found matching Pods or it created new Pods?
+ +`kubectl describe rs ` + +It will be visible under `Events` (the very last lines) +
+ +
+True or False? Deleting a ReplicaSet will delete the Pods it created
+ +True (and not only the Pods but anything else it created). +
+ +
+True or False? Removing the label from a Pod that is used by ReplicaSet to match Pods, will cause the ReplicaSet to create a new Pod
+ +True. When the label, used by a ReplicaSet in the selector field, removed from a Pod, that Pod no longer controlled by the ReplicaSet and the ReplicaSet will create a new Pod to compensate for the one it "lost".
#### Kubernetes - Network Policies diff --git a/exercises/kubernetes/replicaset_01.md b/exercises/kubernetes/replicaset_01.md index 16c4beb..213b34c 100644 --- a/exercises/kubernetes/replicaset_01.md +++ b/exercises/kubernetes/replicaset_01.md @@ -8,4 +8,7 @@ Learn how to create and view ReplicaSets 1. Create a ReplicaSet with 2 replicas. The app can be anything. 2. Verify a ReplicaSet was created and there are 2 replicas -3. Remove the ReplicaSet you've created +3. Delete one of the Pods the ReplicaSet has created +4. If you'll list all the Pods now, what will you see? +5. Remove the ReplicaSet you've created +6. Verify you've deleted the ReplicaSet diff --git a/exercises/kubernetes/replicaset_02.md b/exercises/kubernetes/replicaset_02.md new file mode 100644 index 0000000..fc1b9ad --- /dev/null +++ b/exercises/kubernetes/replicaset_02.md @@ -0,0 +1,12 @@ +## ReplicaSet 102 + +#### Objective + +Learn how to operate ReplicaSets + +#### Instructions + +1. Create a ReplicaSet with 2 replicas. The app can be anything. +2. Verify a ReplicaSet was created and there are 2 replicas +3. Remove the ReplicaSet but NOT the pods it created +4. Verify you've deleted the ReplicaSet but the Pods are still running diff --git a/exercises/kubernetes/replicaset_03.md b/exercises/kubernetes/replicaset_03.md new file mode 100644 index 0000000..cf6e15d --- /dev/null +++ b/exercises/kubernetes/replicaset_03.md @@ -0,0 +1,14 @@ +## ReplicaSet 103 + +#### Objective + +Learn how labels used by ReplicaSets + +#### Instructions + +1. Create a ReplicaSet with 2 replicas. Make sure the label used for the selector and in the Pods is "type=web" +2. Verify a ReplicaSet was created and there are 2 replicas +3. List the Pods running +4. Remove the label (type=web) from one of the Pods created by the ReplicaSet +5. List the Pods running. Are there more Pods running after removing the label? Why? +6. Verify the ReplicaSet indeed created a new Pod diff --git a/exercises/kubernetes/solutions/replicaset_01_solution.md b/exercises/kubernetes/solutions/replicaset_01_solution.md new file mode 100644 index 0000000..c445b87 --- /dev/null +++ b/exercises/kubernetes/solutions/replicaset_01_solution.md @@ -0,0 +1,62 @@ +## ReplicaSet 01 - Solution + +1. Create a ReplicaSet with 2 replicas. The app can be anything. + +``` +cat >> rs.yaml < +``` + +4. If you'll list all the Pods now, what will you see? + +``` +The same number of Pods. Since we defined 2 replicas, the ReplicaSet will make sure to create another Pod that will replace the one you've deleted. +``` + +5. Remove the ReplicaSet you've created + +``` +kubectl delete -f rs.yaml +``` + +6. Verify you've deleted the ReplicaSet + +``` +kubectl get rs +# OR a more specific way: kubectl get -f rs.yaml +``` diff --git a/exercises/kubernetes/solutions/replicaset_02_solution.md b/exercises/kubernetes/solutions/replicaset_02_solution.md new file mode 100644 index 0000000..1e9e082 --- /dev/null +++ b/exercises/kubernetes/solutions/replicaset_02_solution.md @@ -0,0 +1,62 @@ +## ReplicaSet 02 - Solution + +1. Create a ReplicaSet with 2 replicas. The app can be anything. + +``` +cat >> rs.yaml <> rs.yaml < running_pods.txt +``` + +4. Remove the label (type=web) from one of the Pods created by the ReplicaSet + +``` +kubectl label pod type- +``` + +5. List the Pods running. Are there more Pods running after removing the label? Why? + +``` +Yes, there is an additional Pod running because once the label, used as a matching selector, was removed, the Pod became independant meaning, it's not controlled by the ReplicaSet anymore and the ReplicaSet was missing replicas based on its definition so, it created a new Pod. +``` + +6. Verify the ReplicaSet indeed created a new Pod + +``` +kubectl describe rs web +```