#90daysofdevops #37: Important Kubernetes Questions
Table of contents
No headings in the article.
Q1 What is Kubernetes and why it is important?
Kubernetes is an opensource platform for automation,deployment,scaling and managed of containerised applications. It Provided a unified way to manage and orchestrate containers, It is easier to build,deploy,manage complex applications at scale.
it is important because it manages the large scale of applications, high available and scale applications. it helps to developers easily build,deploy and manage their applications in a scalable and efficient manner.
Q2. what is the difference between docker swarm and kubernetes?
Docker Swarm is a native clustering solution for docker that provides load balancing and orchestration of containers. Docker swarm is simpler and easier to use making it a good choice for smaller or less complex deployments. Kubernetes on thr other hand is a more comprehensive platform that provides a range of feature and functionalities, including auto scaling,self healing,rollbacks. Kubernetes has a much larger user base and a more active deployment community,making it a more popluar choice for large-scale production deployments.
Q3. How does Kubernetes handle network communication between containers?
Kubernetes provides a flexible and powerful networking model to handle communicate between containers running within its cluster.
Here are Kubernetes handles network communication.
A) Pod Networking
B) Service Networking
C) Service Discovery
D) Load balancing
E) Network Policies
F) Containers.
Q4 How does kubernetes handle scaling of applications?
Kubernetes provide a built in feature to handle scaling of applications both vertically( Scaling up and Down) and Horizontally (scaling out and in).
A) Vertical Scaling (Scale up and Down)
Pod Autoscaling
Vertical Pod Scaling
B) Horizontal Scaling (Scaling out and in)
Replica Sets
Deployment Scaling
C) Cluster Autoscaling
D) Custom Metrics
Q5 Can you explain the concept of rolling updates in Kubernetes?
Rolling updates are a deployment strategy used an application or its configuration without downtime.
A) Deployment object
B) Specifying Update Strategy
C) Replicasets
D) Rolling Updates
Q6) How does Kubernetes handle network security and access control?
Kubernetes provides the several mechanisms to handle network security and access control within the cluster.
A) Network Policies
B) Cluster Networking
C) Services accounts
D) Role based access control
E) Secret management
Q7 can you give an example of how kubernetes can be used to deploy a highly available applications?
It Provides several mechanism to handle the network security and access control within the cluster.
A) Network Policies
B) Cluster Networking
C) Service accounts
D) Role based access control
E) Secret Management
F) Authentication
Q8 How ingress helps in kubernetes?
Kubernetes an ingress is an API object that acts as an entry point or a traffic router for external traffic to access services.
A) External Access
B) Load Balancing
C) SSL
D) SSL Termination
E) Path-based routing
Host-Based Routing
Q9 Explain different types of services in kubernetes?
In Kubernetes different types of service in kubernetes:
A) Cluster Ip- Provides a stable IP address for internal communication within the cluster.
B) Node Port: Exposes a service on a static port on each other node for access from outside the cluster.
C) Load Balancer: Exposes a service outside the cluster using a cloud provider's load balancer for publi facing applications.
D) External Name:- maps a service to a DNS name to reference an external service by name of IP address.
Q10 How does the NodePort service work?
It is a service to expose externally by assigning a static port on each worker node of the cluster, it allows a external clients to access the service using the IP.
A) Service Definition
B) Port Allocation
C) IP Address
D) Load balancing
E) Source IP Preservation
F) Cluster Firewall