2021年9月28日火曜日

EKS for EC2(マネージド型)のクラスター&ノード作成編

 参照:

クラスタ作成(EC2)
https://docs.aws.amazon.com/ja_jp/eks/latest/userguide/getting-started-eksctl.html

ノード作成(マネージド型)

https://docs.aws.amazon.com/ja_jp/eks/latest/userguide/launch-workers.html




■クラスター&ノードの作成


1)以下のコマンドでクラスタの作成とノードの作成を行う。

(EC2インスタンスの指定がないと、台数が2台でm5.largeで作成される)

========================

eksctl create cluster \

--name クラスタ名 \

--region ap-northeast-1 \

  --node-type t2.micro \

  --nodes 1 \

  --nodes-min 1 \

  --nodes-max 1 \

--with-oidc \

--ssh-access \

--ssh-public-key パブリックキー名 \

--managed

=======================



















完成の様子:






EC2のマネージメントコンソール上でも確認:






EKSのマネージメントコンソールで確認:

(ノードが作成されていることが確認できる)








簡単な、マニュフェストを作成して確認を行う:




■ノードの追加作成


前提:

クラスターの作成を行っていること。



1)以下のコマンドで実施を行う。

===============

eksctl create nodegroup \

  --cluster クラスタ名 \

  --region ap-northeast-1 \

  --name ec2-cluster1 \

  --node-type t2.micro \

  --nodes 1 \

  --nodes-min 1 \

  --nodes-max 1 \

  --ssh-access \

  --ssh-public-key パブリックキー名 \

  --managed

=================





0 件のコメント:

コメントを投稿

test

参照先: https://pecopla.net/seo-column/htaccess-redirect-errors-approach https://www.seohacks.net/blog/1042/ https://htaccess.madewithlove.com/...