This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Copy files and directories to and from containers |
||||||||||
Answer»
Kubernetes is a portable, extensible, open-source platform for managing containerization workloads and services that facilitates both declarative configuration and automation, letting you run distributed systems resiliently with scaling and failover for your application. Knowing Kubernetes is a must-have skill whether you are a developer, a tester or a DevOps engineer, I hope this article has helped you out. If you are preparing for your interviews as a fresher or if you are an experienced person looking to switch jobs, then InterviewBit is the right place to start. It has several tracks including Programming, System Design, Puzzles and Scripting along with company-specific preparation guides and fast track courses. Useful Resources
|
|||||||||||
| 2. |
Interacting with Deployments and Services |
||||||||||||
Answer»
|
|||||||||||||
| 3. |
For Cluster Introspection |
||||||||||
Answer»
|
|||||||||||
| 4. |
Changing Resource Attributes |
||||||||
|
Answer» Taints: They ensure that pods are not placed on inappropriate nodes.
Labels: They are used to identify pods.
|
|||||||||
| 5. |
Kubernetes Commands |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Answer» Viewing Resource Information: 1. Nodes: ShortCode = no A Node is a worker machine in Kubernetes and may be either a virtual or a physical machine, depending on the cluster. Each Node is managed by the control plane. A Node can have multiple pods, and the Kubernetes control plane automatically handles scheduling the pods across the Nodes in the cluster.
2. Pods Shortcode = po Pods are the smallest deployable units of computing that you can create and manage in Kubernetes.
3. Namespaces Shortcode = ns In Kubernetes, namespaces provide a mechanism for isolating groups of resources within a single cluster. Names of resources need to be unique within a namespace, but not across namespaces.
4. Services Shortcode = services In Kubernetes, a Service is an abstraction which defines a logical set of Pods and a policy by which to access them (sometimes this pattern is called a micro-service).
5. Deployments A Deployment provides declarative updates for Pods and ReplicaSets.The typical use case of deployments are to create a deployment to rollout a ReplicaSet, declare the new state of the pods and rolling back to an earlier deployment revision.
6. DaemonSets A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.
7. Events Kubernetes events allow us to paint a performative picture of the clusters.
8. Logs Logs are useful when debugging problems and monitoring cluster activity. They help to understand what is happening inside the application.
9. ReplicaSets 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.
10. Service Accounts A service account provides an identity for processes that run in a Pod.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6. |
Kubernetes Terminology |
||||||||||||||
|
Answer» Terms that you should be familiar with before starting off with Kubernetes are enlisted below:
Since now we have a fair understanding of what Kubernetes is, let's now jump to the cheat sheet. |
|||||||||||||||