Services Flashcards

1
Q

What types of Kubernetes Services are available?

A

Kubernetes supports four types of Services:
- ClusterIP
- NodePort
- LoadBalancer
- ExternalName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a ClusterIP Service in Kubernetes?

A

A ClusterIP Service exposes the Service on a cluster-internal IP address, which is accessible only from within the cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a NodePort Service in Kubernetes?

A

A NodePort Service exposes the Service on a static port on each Node’s IP address, making the Service accessible from outside the cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a LoadBalancer Service in Kubernetes?

A

A LoadBalancer Service provisions an external load balancer in cloud environments to distribute incoming traffic across the Pods in the Service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an ExternalName Service in Kubernetes?

A

An ExternalName Service maps a Service to an external DNS name, allowing Pods to access external services by name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of a Kubernetes Endpoint?

A

Kubernetes Endpoints are dynamically generated resources associated with Services, representing the network addresses of the Pods that belong to the Service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does Kubernetes perform Service discovery within the cluster?

A

Kubernetes performs Service discovery by creating DNS records for each Service, allowing other Pods within the cluster to discover and connect to Services using DNS names.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the difference between a Kubernetes Service and an Ingress?

A

A Kubernetes Service provides internal network access to Pods within the cluster, while an Ingress manages external access to Services from outside the cluster, typically for HTTP/HTTPS traffic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How does Kubernetes handle load balancing for Services?

A

Kubernetes uses iptables or IPVS-based load balancing to distribute incoming traffic across the Pods belonging to a Service, ensuring high availability and scalability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a headless Service in Kubernetes?

A

A headless Service is a Service without a cluster-internal IP address, used to expose individual Pods directly, typically for stateful applications that require unique network identities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly