컨테이너 실행
docker run
kubectl run
(base) hongtae@user:~$ kubectl run echo --image ghcr.io/subicura/echo:v1
Unable to connect to the server: dial tcp 192.168.49.2:8443: connect: no route to host
minikube start
kubectl run echo --image ghcr.io/subicura/echo:v1
pod/echo created < echo 라는 이름의 팟이 생성되었다
(base) hongtae@user:~$ kubectl get pod
NAME READY STATUS RESTARTS AGE
echo 1/1 Running 0 2m28s
name : echo
READY : 컨테이너 준비상태 0/1 컨테이너 준비완료 1/1
STATUS :
RESTARTS :
AGE : 2분 전에 만들어짐
kubectl describe po/echo
(base) hongtae@user:~$ kubectl delete po/echo
pod "echo" deleted
YAML로 설정파일Spec 작성하기