초보자를 위한 Kubernetes Kops 소개

게시 됨: 2021-06-13

Kubernetes 운영 도구인 Kops에 대해 알아보겠습니다.

Kubernetes는 놀라운 컨테이너 오케스트레이션 시스템 및 기능으로 인해 가장 인기 있는 DevOps 도구 중 하나입니다. 그러나 Kubernetes가 많은 기능을 제공하지만 Kubernetes 클러스터를 처음부터 설정하는 것은 고통스럽습니다. 여기에서 Kops가 등장합니다.

Kops를 사용하면 AWS, Google Cloud 등과 같은 클라우드 제공업체에서 Kubernetes 클러스터를 생성하는 것은 식은 죽 먹기입니다. 이를 통해 Kubernetes 클러스터를 손쉽게 설정할 수 있으며 이 기사에서는 이 멋진 도구에 대해 설명하겠습니다.

콥스란?

Kubernetes 작업이라고도 하는 Kops는 고가용성 프로덕션 등급 Kubernetes 클러스터를 생성, 유지 관리, 업그레이드 및 파괴할 수 있는 오픈 소스 공식 Kubernetes 프로젝트입니다. 요구 사항에 따라 클라우드 인프라도 프로비저닝합니다. Kops의 개발자는 이를 Kubernetes 클러스터용 kubectl이라고 설명합니다.

Kops는 주로 AWS 및 GCE Kubernetes 클러스터 배포에 사용됩니다. Kops는 공식적으로 AWS만 지원하며 DigitalOcean, GCE 및 OpenStack과 같은 다른 클라우드 공급자는 베타 단계에 있습니다.

이전에 kubectl에서 작업한 적이 있다면 Kops에서 작업하는 것이 편안할 것입니다. Kops는 클러스터를 생성, 가져오기, 업데이트, 삭제하는 명령을 제공합니다. 또한 Kops는 선언적 구성을 사용하므로 기존 클러스터에 변경 사항을 적용하는 방법을 알고 있습니다. Kops를 사용하면 Kubernetes 클러스터를 확장 및 축소할 수도 있습니다.

다음은 Kops의 기능입니다.

  • 고가용성으로 Kubernetes 마스터 배포
  • 롤링 클러스터 업데이트가 지원됩니다.
  • AWS 및 GCE Kubernetes 클러스터 프로비저닝 자동화
  • 클러스터 추가 기능을 관리합니다.
  • 명령줄에서 명령 자동 완성
  • CloudFormation 및 Terraform 구성 생성
  • 테스트 실행 및 자동 멱등성을 위한 상태 동기화 모델 지원
  • 이기종 클러스터를 지원하는 인스턴스 그룹 생성

Kops 설치

다음은 Linux 환경에 Kops를 설치하는 간단한 단계입니다. 우분투 20.x를 사용하고 있습니다.

먼저 릴리스 패키지에서 Kops를 다운로드합니다. 아래 명령은 최신 Kops 패키지를 다운로드합니다.

 geekflare@ip-170-11-26-119:~$ curl -Lo kops https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64 Saving to: 'kops-linux-amd64' 100%[=========================================================================================================================================================================>] 81,964,000 8.37MB/s in 7.1s 2021-06-10 16:23:19 (7.84 MB/s) - 'kops-linux-amd64' saved [81964000/81964000]

다운로드한 kops 파일에 실행 권한을 제공하고 /usr/local/bin/ 디렉토리로 이동해야 합니다.

 geekflare@ip-170-11-26-119:~$ sudo chmod +x kops-linux-amd64 geekflare@ip-170-11-26-119:~$ sudo mv kops-linux-amd64 /usr/local/bin/kops

설치가 완료되었습니다. 이제 kops 명령을 실행하여 설치를 확인할 수 있습니다.

 geekflare@ip-170-11-26-119:~$ kops kops is Kubernetes ops. kops is the easiest way to get a production grade Kubernetes cluster up and running. We like to think of it as kubectl for clusters. kops helps you create, destroy, upgrade and maintain production-grade, highly available, Kubernetes clusters from the command line. AWS (Amazon Web Services) is currently officially supported, with GCE and VMware vSphere in alpha support. Usage: kops [command] Available Commands: completion Output shell completion code for the given shell (bash or zsh). create Create a resource by command line, filename or stdin. delete Delete clusters,instancegroups, or secrets. describe Describe a resource. edit Edit clusters and other resources. export Export configuration. get Get one or many resources. import Import a cluster. replace Replace cluster resources. rolling-update Rolling update a cluster. toolbox Misc infrequently used commands. update Update a cluster. upgrade Upgrade a kubernetes cluster. validate Validate a kops cluster. version Print the kops version information. Flags: --alsologtostderr log to standard error as well as files --config string config file (default is $HOME/.kops.yaml) -h, --help help for kops --log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0) --log_dir string If non-empty, write log files in this directory --logtostderr log to standard error instead of files (default false) --name string Name of cluster --state string Location of state storage --stderrthreshold severity logs at or above this threshold go to stderr (default 2) -v, --v Level log level for V logs --vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging Use "kops [command] --help" for more information about a command.

Kops 버전을 확인하여 Kops가 올바르게 설치되었는지 확인하십시오.

 geekflare@ip-170-11-26-119:~$ kops version Version 1.20.1 (git-5a27dad)

이제 관리자가 Kubernetes 작업을 실행하기 위해 널리 사용하는 몇 가지 중요한 Kops 명령을 살펴보겠습니다.

경찰 명령

다음은 널리 사용되는 Kops 명령을 알아야 합니다.

콥 생성

kops create 명령은 클러스터를 등록하는 데 사용됩니다.

구문: kops create cluster <clustername>

기본 명령 외에 추가할 수 있는 영역, 지역, 인스턴스 유형, 노드 수 등과 같은 많은 다른 매개변수가 있습니다.

콥스 업데이트

kops update 명령은 지정된 클러스터 사양으로 클러스터를 업데이트하는 데 사용됩니다.

구문: kops 업데이트 클러스터 –이름 <클러스터 이름>

미리 보기 모드에서 이 명령을 실행하면 더 안전한 면이 될 수 있으며 미리 보기 출력이 예상과 일치하면 –yes 플래그와 함께 명령을 실행하여 변경 사항을 클러스터에 적용할 수 있습니다.

경찰은 얻는다

kops get 명령은 모든 클러스터를 나열하는 데 사용됩니다.

구문: kops는 클러스터를 가져옵니다.

경찰 삭제

kops delete 명령은 레지스트리에서 특정 클러스터와 해당 클러스터에 할당된 모든 클라우드 리소스를 삭제하는 데 사용됩니다.

구문: kops delete cluster –name <clustername>

업데이트와 마찬가지로 미리보기 모드에서도 이 명령을 실행할 수 있습니다.

kops 롤링 업데이트

kops 롤링 업데이트 명령은 클라우드 및 kops 사양과 일치하도록 Kubernetes 클러스터를 업데이트하는 데 사용됩니다.

구문: kops 롤링 업데이트 클러스터 –name <clustername>

업데이트와 마찬가지로 미리보기 모드에서도 이 명령을 실행할 수 있습니다.

확인하다

kops validate 명령은 생성한 클러스터가 작동 중인지 여부를 확인합니다. 예를 들어 포드와 노드가 보류 상태인 경우 validate 명령은 클러스터가 아직 정상이 아님을 반환합니다.

구문: kops 유효성 검사 클러스터 –wait <지정된_시간>

이 명령은 지정된 시간 동안 클러스터를 기다리고 유효성을 검사합니다. 따라서 5분 동안 클러스터의 유효성을 검사하려면 지정된 시간으로 5m로 명령을 실행하십시오.

여기까지가 Kops 기본 사항이었습니다. 이제 Kops를 사용하여 AWS에서 Kubernetes 클러스터를 생성하는 방법을 보여드리겠습니다.

Kops를 사용하여 AWS에서 Kubernetes 설정

아래에 언급된 단계를 시작하기 전에 다음과 같은 몇 가지 전제 조건이 있습니다.

  • 우분투 20.04
  • AWS CLI
  • AWS 구성

kubectl 설치

먼저 kubectl을 설치하겠습니다.

Kubectl은 Kubernetes 클러스터에서 명령줄 명령을 실행하는 데 사용됩니다. kubectl 패키지를 다운로드합니다.

 geekflare@ip-170-11-26-119:~$ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 39.6M 100 39.6M 0 0 6988k 0 0:00:07 0:00:07 --:--:-- 6988k

다운로드한 파일에 실행 권한을 부여하고 /usr/local/bin/ 디렉토리로 이동해야 합니다.

 geekflare@ip-170-11-26-119:~$ chmod +x ./kubectl geekflare@ip-170-11-26-119:~$ sudo mv ./kubectl /usr/local/bin/kubectl

S3 버킷 생성

Linux 머신에 AWS CLI를 설치하고 구성하면 aws 명령을 실행할 수 있습니다. Ubuntu 시스템에 aws cli가 설치되어 있으므로 S3의 모든 버킷을 나열하는 간단한 명령을 실행하겠습니다.

 geekflare@ip-170-11-26-119:~$ aws s3 ls

지금은 s3 버킷이 없기 때문에 비어 있습니다. ec2 인스턴스가 실행 중인지 확인하겠습니다.

 geekflare@ip-170-11-26-119:~$ aws ec2 describe-instances { "Reservations": [] }

이는 현재 실행 중인 ec2 인스턴스가 없음을 의미합니다.

이제 Kops가 클러스터의 모든 상태 정보를 저장할 s3 버킷을 생성해야 합니다. 여기에서는 이름이 geekkops-bucket-1132인 us-west-2 리전에 s3 버킷을 생성합니다. LocationConstraint를 사용하여 지역 오류를 방지할 수 있습니다.

 geekflare@ip-170-11-26-119:~$ aws s3api create-bucket --bucket geekkops-bucket-1132 --region us-west-2 --create-bucket-configuration LocationConstraint=us-west-2 { "Location": "http://geekkops-bucket-1132.s3.amazonaws.com/" }

aws s3 bucket 을 다시 나열하면 방금 생성한 버킷을 받게 됩니다.

 geekflare@ip-170-11-26-119:~$ aws s3 ls 2021-06-10 16:30:13 geekkops-bucket-1132

아래 명령을 실행하여 s3 버킷의 버전을 활성화합니다.

 geekflare@ip-170-11-26-119:~$ aws s3api put-bucket-versioning --bucket geekkops-bucket-1132 --versioning-configuration Status=Enabled

키 생성

클러스터 로그인 및 암호 생성을 위해 Kops에서 사용할 ssh 키를 생성합니다.

 geekflare@ip-170-11-26-119:~$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/ubuntu/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/ubuntu/.ssh/id_rsa. Your public key has been saved in /home/ubuntu/.ssh/id_rsa.pub. The key fingerprint is: SHA256:fH4JCBXMNRqzk1hmoK+cXmwSFaeBsuGBA5IWMkNuvq0 geekflare@ip-170-11-26-119 The key's randomart image is: +---[RSA 2048]----+ |O=. .++Xoo | |B++ .. @o* . | |.= =. = = | |ooooo | | . . . S o | | o. = o . . | | . .= + . o | | .. + . | | E . | +----[SHA256]-----+

환경 변수 내보내기

클러스터 이름과 s3 버킷을 환경 변수로 노출합니다. 이것은 현재 세션에만 적용됩니다. 미리 구성된 DNS를 사용하지 않기 때문에 접미사 '.k8s.local'을 사용하고 있습니다.

 geekflare@ip-170-11-26-119:~$ export KOPS_CLUSTER_NAME=geekdemo1.k8s.local geekflare@ip-170-11-26-119:~$ export KOPS_STATE_STORE=s3://geekkops-bucket-1132

클러스터 생성

kops create 명령을 사용하여 클러스터를 생성합니다. 다음은 Kops를 사용하여 AWS에서 Kubernetes 클러스터를 생성하는 데 사용하는 파라미터입니다.

  • --cloud 는 내가 사용하고 있는 클라우드 공급자에게 알려줍니다.
  • --zones 는 클러스터 인스턴스가 배포될 영역입니다.
  • --node-count 는 Kubernetes 클러스터에 배포할 노드 수입니다.
  • --node-size--master-size 는 ec2 인스턴스 유형입니다. 저는 마이크로 인스턴스를 사용하고 있습니다.
  • --name 은 클러스터 이름입니다.
 geekflare@ip-170-11-26-119:~$ kops create cluster --cloud=aws --zones=eu-central-1a --node-count=1 --node-size=t2.micro --master-size=t2.micro --name=${KOPS_CLUSTER_NAME} I0216 16:35:24.225238 4326 subnets.go:180] Assigned CIDR 172.20.32.0/19 to subnet eu-central-1a I0216 16:35:24.068088 4326 create_cluster.go:717] Using SSH public key: /home/ubuntu/.ssh/id_rsa.pub Previewing changes that will be made: I0216 16:35:24.332590 4326 apply_cluster.go:465] Gossip DNS: skipping DNS validation I0216 16:35:24.392712 4326 executor.go:111] Tasks: 0 done / 83 total; 42 can run W0216 16:35:24.792113 4326 vfs_castore.go:604] CA private key was not found I0216 16:35:24.938057 4326 executor.go:111] Tasks: 42 done / 83 total; 17 can run I0216 16:35:25.436407 4326 executor.go:111] Tasks: 59 done / 83 total; 18 can run I0216 16:35:25.822395 4326 executor.go:111] Tasks: 77 done / 83 total; 2 can run I0216 16:35:25.823088 4326 executor.go:111] Tasks: 79 done / 83 total; 2 can run I0216 16:35:26.406919 4326 executor.go:111] Tasks: 81 done / 83 total; 2 can run I0216 16:35:27.842148 4326 executor.go:111] Tasks: 83 done / 83 total; 0 can run LaunchTemplate/master-eu-central-1a.masters.geekdemo1.k8s.local AssociatePublicIP true HTTPPutResponseHopLimit 1 HTTPTokens optional IAMInstanceProfile name:masters.geekdemo1.k8s.local id:masters.geekdemo1.k8s.local ImageID 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20210119.1 InstanceType t2.micro RootVolumeSize 64 RootVolumeType gp2 RootVolumeEncryption false RootVolumeKmsKey SSHKey name:kubernetes.geekdemo1.k8s.local-3e:19:92:ca:dd:64:d5:cf:ff:ed:3a:92:0f:40:d4:e8 id:kubernetes.geekdemo1.k8s.local-3e:19:92:ca:dd:64:d5:cf:ff:ed:3a:92:0f:40:d4:e8 SecurityGroups [name:masters.geekdemo1.k8s.local] SpotPrice Tags {k8s.io/cluster-autoscaler/node-template/label/kubernetes.io/role: master, k8s.io/cluster-autoscaler/node-template/label/kops.k8s.io/instancegroup: master-eu-central-1a, k8s.io/role/master: 1, kops.k8s.io/instancegroup: master-eu-central-1a, Name: master-eu-central-1a.masters.geekdemo1.k8s.local, KubernetesCluster: geekdemo1.k8s.local, kubernetes.io/cluster/geekdemo1.k8s.local: owned, k8s.io/cluster-autoscaler/node-template/label/node-role.kubernetes.io/master: } Subnet/eu-central-1a.geekdemo1.k8s.local ShortName eu-central-1a VPC name:geekdemo1.k8s.local AvailabilityZone eu-central-1a CIDR 172.20.32.0/19 Shared false Tags {KubernetesCluster: geekdemo1.k8s.local, kubernetes.io/cluster/geekdemo1.k8s.local: owned, SubnetType: Public, kubernetes.io/role/elb: 1, Name: eu-central-1a.geekdemo1.k8s.local} VPC/geekdemo1.k8s.local CIDR 172.20.0.0/16 EnableDNSHostnames true EnableDNSSupport true Shared false Tags {kubernetes.io/cluster/geekdemo1.k8s.local: owned, Name: geekdemo1.k8s.local, KubernetesCluster: geekdemo1.k8s.local} VPCDHCPOptionsAssociation/geekdemo1.k8s.local VPC name:geekdemo1.k8s.local DHCPOptions name:geekdemo1.k8s.local Must specify --yes to apply changes Cluster configuration has been created. Suggestions: * list clusters with: kops get cluster * edit this cluster with: kops edit cluster geekdemo1.k8s.local * edit your node instance group: kops edit ig --name=geekdemo1.k8s.local nodes-eu-central-1a * edit your master instance group: kops edit ig --name=geekdemo1.k8s.local master-eu-central-1a Finally configure your cluster with: kops update cluster --name geekdemo1.k8s.local --yes –admin

kops get 명령을 실행하여 클러스터가 생성되었는지 확인합니다.

 geekflare@ip-170-11-26-119:~$ kops get cluster NAME CLOUD ZONES geekdemo1.k8s.local aws eu-central-1a

클러스터 업데이트

지정된 클러스터 사양을 클러스터에 적용하려면 kops update 명령을 실행하십시오.

 geekflare@ip-170-11-26-119:~$ kops update cluster --name geekdemo1.k8s.local --yes --admin I0216 16:38:16.800767 4344 apply_cluster.go:465] Gossip DNS: skipping DNS validation I0216 16:38:16.919282 4344 executor.go:111] Tasks: 0 done / 83 total; 42 can run W0216 16:38:17.343336 4344 vfs_castore.go:604] CA private key was not found I0216 16:38:18.421652 4344 keypair.go:195] Issuing new certificate: "etcd-clients-ca" I0216 16:38:18.450699 4344 keypair.go:195] Issuing new certificate: "etcd-peers-ca-main" I0216 16:38:19.470785 4344 keypair.go:195] Issuing new certificate: "etcd-manager-ca-main" I0216 16:38:19.531852 4344 keypair.go:195] Issuing new certificate: "etcd-peers-ca-events" I0216 16:38:19.551601 4344 keypair.go:195] Issuing new certificate: "apiserver-aggregator-ca" I0216 16:38:19.571834 4344 keypair.go:195] Issuing new certificate: "etcd-manager-ca-events" I0216 16:38:19.592090 4344 keypair.go:195] Issuing new certificate: "master" W0216 16:38:19.652894 4344 vfs_castore.go:604] CA private key was not found I0216 16:38:19.653013 4344 keypair.go:195] Issuing new certificate: "ca" I0216 16:38:24.344075 4344 executor.go:111] Tasks: 42 done / 83 total; 17 can run I0216 16:38:24.306125 4344 executor.go:111] Tasks: 59 done / 83 total; 18 can run I0216 16:38:26.189798 4344 executor.go:111] Tasks: 77 done / 83 total; 2 can run I0216 16:38:26.190464 4344 executor.go:111] Tasks: 79 done / 83 total; 2 can run I0216 16:38:26.738600 4344 executor.go:111] Tasks: 81 done / 83 total; 2 can run I0216 16:38:28.810100 4344 executor.go:111] Tasks: 83 done / 83 total; 0 can run I0216 16:38:29.904257 4344 update_cluster.go:313] Exporting kubecfg for cluster kops has set your kubectl context to geekdemo1.k8s.local Cluster is starting. It should be ready in a few minutes. Suggestions: * validate cluster: kops validate cluster --wait 10m * list nodes: kubectl get nodes --show-labels * ssh to the master: ssh -i ~/.ssh/id_rsa [email protected] * the ubuntu user is specific to Ubuntu. If not using Ubuntu please use the appropriate user based on your OS. * read about installing addons at: https://kops.sigs.k8s.io/operations/addons.

Kubernetes 노드가 실행 중인지 여부를 즉시 확인하면 오류가 발생합니다. 클러스터가 생성될 때까지 약간의 인내심을 갖고 몇 분(5-10분) 동안 기다려야 합니다.

 geekflare@ip-170-11-26-119:~$ kubectl get nodes Unable to connect to the server: dial tcp: lookup api-geekdemo1-k8s-local-dason2-1001342368.eu-central-1.elb.amazonaws.com on 127.0.0.53:53: no such host

클러스터 검증

클러스터가 작동되고 정상인지 확인하기 위해 5분 동안 validate 명령을 실행하고 있습니다. 유효성 검사 출력에서 ​​노드 세부 정보가 작동 중일 때 볼 수 있습니다.

 geekflare@ip-170-11-26-119:~$ kops validate cluster --wait 5m Validating cluster geekdemo1.k8s.local INSTANCE GROUPS NAME ROLE MACHINETYPE MIN MAX SUBNETS master-eu-central-1a Master t2.micro 1 1 eu-central-1a nodes-eu-central-1a Node t2.micro 1 1 eu-central-1a

노드 및 포드 나열

이제 아래 명령을 실행하여 모든 노드가 준비되어 실행 중인지 확인하십시오. 마스터와 노드가 모두 준비 상태인 것을 볼 수 있습니다.

 geekflare@ip-170-11-26-119:~$ kubectl get nodes NAME STATUS ROLES AGE VERSION ip-173-19-35-156.eu-central-1.compute.internal Ready master 10m v1.20.1 ip-172-36-23-149.eu-central-1.compute.internal Ready node 5m38s v1.20.1

Kubernetes 클러스터에서 실행 중인 모든 Pod를 확인할 수 있습니다.

 geekflare@ip-170-11-26-119:~$ kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system dns-controller-8d8889c4b-xp9dl 1/1 Running 0 8m26s kube-system etcd-manager-events-ip-173-19-35-156.eu-central-1.compute.internal 1/1 Running 0 10m kube-system etcd-manager-main-ip-173-19-35-156.eu-central-1.compute.internal 1/1 Running 0 10m kube-system kops-controller-9skdk 1/1 Running 3 6m51s kube-system kube-apiserver-ip-173-19-35-156.eu-central-1.compute.internal 2/2 Running 0 10m kube-system kube-controller-manager-ip-173-19-35-156.eu-central-1.compute.internal 1/1 Running 6 10m kube-system kube-dns-696cb84c7-g8nhb 3/3 Running 0 4m27s kube-system kube-dns-autoscaler-55f8f75459-zlxbr 1/1 Running 0 7m18s kube-system kube-proxy-ip-173-19-35-156.eu-central-1.compute.internal 1/1 Running 0 10m kube-system kube-proxy-ip-172-36-23-149.eu-central-1.compute.internal 1/1 Running 0 7m2s kube-system kube-scheduler-ip-173-19-35-156.eu-central-1.compute.internal 1/1 Running 5 10m

클러스터 삭제

Kubernetes 클러스터를 생성하는 것과 마찬가지로 Kops를 사용하여 Kubernetes 클러스터를 삭제하는 것은 매우 간단합니다. 이 kops delete 명령은 클러스터의 모든 클라우드 리소스와 클러스터 레지스트리 자체를 제거합니다.

 geekflare@ip-170-11-26-119:~$ kops delete cluster --name geekdemo1.k8s.local --yes TYPE NAME ID autoscaling-config master-eu-central-1a.masters.geekdemo1.k8s.local lt-0cc11aec1943204e4 autoscaling-config nodes-eu-central-1a.geekdemo1.k8s.local lt-0da65d2eaf6de9f5c autoscaling-group master-eu-central-1a.masters.geekdemo1.k8s.local master-eu-central-1a.masters.geekdemo1.k8s.local autoscaling-group nodes-eu-central-1a.geekdemo1.k8s.local nodes-eu-central-1a.geekdemo1.k8s.local dhcp-options geekdemo1.k8s.local dopt-0403a0cbbfbc0c72b iam-instance-profile masters.geekdemo1.k8s.local masters.geekdemo1.k8s.local iam-instance-profile nodes.geekdemo1.k8s.local nodes.geekdemo1.k8s.local iam-role masters.geekdemo1.k8s.local masters.geekdemo1.k8s.local iam-role nodes.geekdemo1.k8s.local nodes.geekdemo1.k8s.local instance master-eu-central-1a.masters.geekdemo1.k8s.local i-069c73f2c23eb502a instance nodes-eu-central-1a.geekdemo1.k8s.local i-0401d6b0d4fc11e77 iam-instance-profile:nodes.geekdemo1.k8s.local ok load-balancer:api-geekdemo1-k8s-local-dason2 ok iam-instance-profile:masters.geekdemo1.k8s.local ok iam-role:masters.geekdemo1.k8s.local ok instance:i-069c73f2c23eb502a ok autoscaling-group:nodes-eu-central-1a.geekdemo1.k8s.local ok iam-role:nodes.geekdemo1.k8s.local ok instance:i-0401d6b0d4fc11e77 ok autoscaling-config:lt-0cc11aec1943204e4 ok autoscaling-config:lt-0da65d2eaf6de9f5c ok autoscaling-group:master-eu-central-1a.masters.geekdemo1.k8s.local ok keypair:key-0d82g920j421b89dn ok Deleted kubectl config for geekdemo1.k8s.local Deleted cluster: "geekdemo1.k8s.local"

결론

Kops에 대한 이 기사가 도움이 되었기를 바라며 오늘 새로운 것을 배우게 되었습니다. Kops는 클라우드에서 Kubernetes와 함께 작업할 수 있는 환상적인 도구입니다. 따라서 이 문서에 언급된 단계를 시도하고 Kops를 사용하여 AWS에서 Kubernetes 클러스터를 설정하십시오.