kubernetes [CKA] - Deployment
문제 1 a webserver 라는 이름으로 Deployment를 생성하시오. - Name : webserver - 2 replicas - labels: app-env_stage=dev - container name : webserver - container image : nginx:1.14 문제 풀이 // kubectl run 은 pod 관련, create 은 deployment kubectl create deployment webserver --image=nginx:1.14 --replicas=2 --dry-run=client -o yaml > webserver.yaml vi webserver.yaml apiVersion: apps/v1 kind: Deployment metadata: name: we..
cka
2023. 8. 29. 22:41