"Kops edit instancegroup"의 두 판 사이의 차이

(새 문서: ==개요== ;kops edit instancegroup ;kops edit ig <source lang='console'> $ kops get ig NAME ROLE MACHINETYPE MIN MAX ZONES master-ap-northeast-2c...)
 
1번째 줄: 1번째 줄:
{{소문자}}
==개요==
==개요==
;kops edit instancegroup
;kops edit instancegroup

2019년 10월 7일 (월) 11:50 판

1 개요

kops edit instancegroup
kops edit ig
$ kops get ig
NAME                    ROLE    MACHINETYPE     MIN     MAX     ZONES
master-ap-northeast-2c  Master  t3.small        1       1       ap-northeast-2c
nodes                   Node    t3.medium       2       2       ap-northeast-2c
$ kops edit ig nodes
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
  creationTimestamp: 2019-03-25T06:13:33Z
  labels:
    kops.k8s.io/cluster: k8s.example.com
  name: nodes
spec:
  image: kope.io/k8s-1.12-debian-stretch-amd64-hvm-ebs-2019-08-16
  machineType: t3.medium
  maxSize: 3
  minSize: 3
  nodeLabels:
    kops.k8s.io/instancegroup: nodes
  role: Node
  subnets:
  - ap-northeast-2c
$ kops get ig
NAME                    ROLE    MACHINETYPE     MIN     MAX     ZONES
master-ap-northeast-2c  Master  t3.small        1       1       ap-northeast-2c
nodes                   Node    t3.medium       3       3       ap-northeast-2c
$ kops update cluster
I1007 11:45:57.336470    4930 executor.go:103] Tasks: 0 done / 83 total; 42 can run
I1007 11:45:58.380074    4930 executor.go:103] Tasks: 42 done / 83 total; 23 can run
I1007 11:45:59.005711    4930 executor.go:103] Tasks: 65 done / 83 total; 16 can run
I1007 11:45:59.273060    4930 executor.go:103] Tasks: 81 done / 83 total; 2 can run
I1007 11:45:59.339632    4930 executor.go:103] Tasks: 83 done / 83 total; 0 can run
Will modify resources:
  AutoscalingGroup/nodes.k8s.example.com
        MaxSize                  2 -> 3
        MinSize                  2 -> 3

Must specify --yes to apply changes
$ kops update cluster --yes
I1007 11:47:45.995254    4949 executor.go:103] Tasks: 0 done / 83 total; 42 can run
I1007 11:47:46.773387    4949 executor.go:103] Tasks: 42 done / 83 total; 23 can run
I1007 11:47:47.463784    4949 executor.go:103] Tasks: 65 done / 83 total; 16 can run
I1007 11:47:47.736052    4949 executor.go:103] Tasks: 81 done / 83 total; 2 can run
I1007 11:47:47.945388    4949 executor.go:103] Tasks: 83 done / 83 total; 0 can run
I1007 11:47:47.945630    4949 dns.go:153] Pre-creating DNS records
I1007 11:47:48.800378    4949 update_cluster.go:291] Exporting kubecfg for cluster
kops has set your kubectl context to k8s.example.com

Cluster changes have been applied to the cloud.


Changes may require instances to restart: kops rolling-update cluster

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}