Go

Kubernetes Basics

Pods, deployments, services, config maps, secrets, health checks, resource limits

22 면접 질문·
Senior
1

What is a Pod in Kubernetes?

답변

A Pod is the smallest deployable unit in Kubernetes. It represents a group of one or more containers that share the same network and storage namespace. Containers in a Pod can communicate via localhost and access the same volumes. The Pod provides a shared execution context for the containers it contains.

2

What is the main advantage of using a Deployment rather than a standalone Pod?

답변

A Deployment automatically manages the Pod lifecycle, including replication, rolling updates, and rollbacks. It ensures that a specified number of replicas is always running. If a Pod fails, the Deployment automatically creates a new one to maintain the desired state.

3

Which Kubernetes Service type should be used to expose an application only inside the cluster?

답변

ClusterIP is the default Service type in Kubernetes. It creates a virtual IP address accessible only from within the cluster. This type is ideal for inter-service communication like between a frontend and backend, or between an API and a database. The ClusterIP address remains stable even if the underlying Pods change.

4

How to store non-sensitive configuration data in Kubernetes?

5

What is the main difference between a Secret and a ConfigMap in Kubernetes?

+19 면접 질문

다음 면접을 위해 Go을 마스터하세요

모든 질문, flashcards, 기술 테스트, 코드 리뷰 연습, 면접 시뮬레이터에 접근하세요.

무료로 시작하기