Question:- What is the difference between a replica set and a replication controller?
Answer:- The difference is mainly in the selectors used for pod replication. A replica set uses set-based selectors, and replication controllers use equity-based selectors.
Question:- How does Kubernetes scale?
Answer:- The kubectl scale command enables the ability to instantly change the number of replicas needed for running an application. While using this command, the new number of replicas need to be specified by setting the –replicas flag.
Question:- What is a Kubernetes context?
Answer:- A context is a group of access parameters that has a cluster, a user, and a namespace. The current context is the cluster that is currently the default for kubectl, and all kubectl commands run against that cluster.
Question:- Give examples of some recommended security measures for Kubernetes.
Answer:- • Defining resource quotas • Auditing support • Providing restricted access to etcd • Regular security updates • Network segmentation • Strict resource policies • Regular scans for security vulnerabilities • Using images from repositories that are authorized
Question:- What is a Headless Service?
Answer:- The headless service is like normal services but without the Cluster IP. It enables direct access to pods without the need for a proxy.
Question:- What is Minikube?
Answer:- The Minikube makes it easy for the local running of Kubernetes. Within a virtual machine, the Minikube runs a single-node Kubernetes cluster.
Question:- What is Kubectl?
Answer:- Kubectl is a Kubernetes command-line tool that is used for deploying and managing applications on Kubernetes. Kubectl is especially useful for inspecting the cluster resources, and for creating, updating, and deleting the components.
Question:- What is GKE?
Answer:- GKE is Google Kubernetes Engine which is used for managing and orchestrating systems for Docker containers. GKE also lets us orchestrate container clusters within the Google Public Cloud.
Question:- What is kube-proxy?
Answer:- The kube-proxy runs on each of the nodes. It can do simple tasks such as TCP, UDP, forwarding, and so on. It shows the services in the Kubernetes API on each node.
Question:- What are the components of a Kubernetes Master?
Answer:- The components of the Kubernetes Master include the API server, the controller manager, the Scheduler, and the etcd components. The Kubernetes Master components are responsible for running and managing the Kubernetes cluster.
Question:- What is the use of kube-controller-manager?
Answer:- It is the Kubernetes Controller Manager. The kube-controller-manager is a daemon that embeds the core control loops which regulate the system state, and it is a non-terminating loop.
Question:- What is load balancing on Kubernetes?
Answer:- The process of load balancing will let us expose services. There are two types of load balancing when it comes to Kubernetes: • Internal load balancing: This is used for balancing the loads automatically and allocating the pods with the required configuration. • External load balancing: This directs the traffic from the external loads to the backend pods.
Question:- What does a kube-scheduler do?
Answer:- The kube-scheduler has the job of assigning the nodes to the newly created pods.
Question:- Where is the Kubernetes cluster data stored?
Answer:- The primary data store of Kubernetes is etcd, which is responsible for storing all Kubernetes cluster data.