Created
November 13, 2025 22:28
-
-
Save koorukuroo/f9c9ae6587041848e8066dfe94c61890 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 # apps/v1 (소문자 v1) | |
| kind: Deployment | |
| metadata: | |
| name: fastapi-deployment # Deployment 이름 | |
| spec: # spec (S 소문자) | |
| replicas: 2 # 파드 2개 실행 | |
| selector: | |
| matchLabels: | |
| app: fastapi # 파드를 선택하는 label selector | |
| template: # 파드 템플릿 시작 | |
| metadata: | |
| labels: | |
| app: fastapi # 파드에 적용될 label (selector와 반드시 일치) | |
| spec: # Pod spec | |
| containers: | |
| - name: fastapi # 컨테이너 이름 | |
| image: fastapi-app:1.0 # 로컬에서 빌드한 이미지(tag: 1.0) | |
| imagePullPolicy: Never # 로컬 이미지만 사용 (minikube/docker desktop용) | |
| ports: | |
| - containerPort: 8000 # FastAPI 기본 포트 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment