changes.mady.by.user Sansae
Saved on Mar 02, 2024
...
Image Added
https://dev-k8sref-io.web.app/docs/workloads/deployment-v1/
apiVersion: 쿠버네티스 API버전을 가리킴
kind: 리소스 유형
metadata (ObjectMeta): 포드와 관련된 이름, 네임스페이스, 라벨, 그밖의 정보
spec (DeploymentSpec): PodTemplate
template
selector
replicas
apiVersion: apps/v1 kind: ReplicaSet metadata: name: nginx-rs labels: app: myapp-rs type: front-end spec: template: metadata: name: nginx labels: app: myapp type: front-end spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 selector: matchLabels: type: front-end replicas: 3
k create deployment --image=nginx nginx --dry-run=client -o yaml > nginx-deploy.yaml