C:\Users\Dennis>kubectl cluster-info
Kubernetes control plane is running at https://kubernetes.docker.internal:6443
CoreDNS is running at https://kubernetes.docker.internal:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
C:\Users\Dennis>kubectl get nodes
NAME STATUS ROLES AGE VERSION
docker-desktop Ready control-plane 57m v1.28.2
C:\Users\Dennis>kubectl create deployment webserver --image=nginx
deployment.apps/webserver created
C:\Users\Dennis>kubectl get deploy
NAME READY UP-TO-DATE AVAILABLE AGE
webserver 0/1 1 0 32s
C:\Users\Dennis>kubectl expose deployment webserver --type="NodePort" --port 6000
C:\Users\Dennis>kubectl get services
C:\Users\Dennis>kubectl scale deployment webserver --replicas=3
deployment.apps/webserver scaled
C:\Users\Dennis>kubectl get deployment
NAME READY UP-TO-DATE AVAILABLE AGE
webserver 3/3 3 3 98m
C:\Users\Dennis>kubectl delete service webserver
service "webserver" deleted
'Infra > Docker_K8S' 카테고리의 다른 글
Docker Multi-Stage Build로 컨테이너 이미지 크기 줄이기 (0) | 2024.11.18 |
---|---|
VSC에서 Remote Development extesion 사용 (0) | 2024.01.31 |
Keycloak 개념및 도커 셋팅하기 (1) | 2024.01.24 |
윈도우상 docker volume 도커 볼륨 위치 (0) | 2023.12.21 |
chroot 명령어 이해.... (0) | 2023.12.19 |
댓글