Alibaba Cloud의 Container Service (Kubernetes 버전) 클러스터 작업
                                            
                                                
                                                
                                                
                                                
                                                
                                                 2746 단어  AlibabaCloudkubernetes
                    
클러스터 작업
호스트 스케일 변경

클러스터에서 작업
$ scp root@<マスタインスタンスのIPアドレス>:/etc/kubernetes/kube.conf $HOME/.kube/config
$ kubectl get pods
NAME                            READY     STATUS    RESTARTS   AGE
frontend-685d7ff496-2fwvq       1/1       Running   0          4h
frontend-685d7ff496-hw5m6       1/1       Running   0          6s
frontend-685d7ff496-tbmtr       1/1       Running   0          4h
  <中略>
$ kubectl scale deployment frontend --replicas=3
deployment "frontend" scaled
$ kubectl get pods
NAME                            READY     STATUS    RESTARTS   AGE
frontend-685d7ff496-2fwvq       1/1       Running   0          4h
frontend-685d7ff496-c92jm       1/1       Running   0          4h
frontend-685d7ff496-tbmtr       1/1       Running   0          4h
http-svc-26brj                  1/1       Running   0          6h
http-svc-pqz27                  1/1       Running   0          6h
redis-master-7bd4d6ccfd-x2msr   1/1       Running   0          5h
redis-slave-84845b8fd8-28hqb    1/1       Running   0          4h
redis-slave-84845b8fd8-lzc9m    1/1       Running   0          4h
$ kubectl get services
NAME           TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE
frontend       NodePort    172.19.0.61     <none>        80:32701/TCP   4h
http-svc       NodePort    172.19.11.17    <none>        80:30301/TCP   6h
kubernetes     ClusterIP   172.19.0.1      <none>        443/TCP        6h
redis-master   ClusterIP   172.19.9.128    <none>        6379/TCP       4h
redis-slave    ClusterIP   172.19.13.106   <none>        6379/TCP       4h
기타

Reference
이 문제에 관하여(Alibaba Cloud의 Container Service (Kubernetes 버전) 클러스터 작업), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/yoshidashingo/items/d431d2ea38aff04d7110텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)