18 Temmuz 2023 Salı

Amazon Web Service (AWS) eksctl komutu

Giriş
EKS ile çalışmayı kolaylaştırır. Açıklaması şöyle
We need to install the eksctl command-line utility to manage the EKS cluster and the Kubernetes command-line tool kubectl.

create cluster seçeneği
Örnek
Şöyle yaparız
> eksctl create cluster \ 
--name microservices \ 
--region eu-central-1 \ 
--node-type t2.small \ 
--nodes 2
Açıklaması şöyle
It will make a cluster with two worker nodes of type “t2.small” in the region “eu-central-1” with the name “microservice.”

In the background, eksctl uses CloudFormation to create the cluster, which usually takes 10–15 minutes. 
Açıklaması şöyle
From the output, it is evident that it has created two nodes and one node group. Also, it has saved the kubectl config file in ./.kube/config. In case you already have minikube or microk8s, you have to mention the ./.kube/config file as the kubeconfig parameter in the command.

Creating an EKS cluster will take around 15 minutes. Once the cluster is ready, you can check it with the following command:

> kubectl get nodes --kubeconfig ~/.kube/config
Örnek
Şöyle yaparız
$ eksctl create cluster \
  --name my-cluster \
  --version 1.18 \
  --region us-west-2 \
  --nodegroup-name my-nodes \
  --node-type t3.medium \
  --nodes 3
Örnek
Şöyle yaparız
$ eksctl create cluster \
 --name Democluster\
 --version <1.21> \
 --without-nodegroup
get cluster seçeneği
Örnek
Şöyle yaparız
$ eksctl get cluster


Hiç yorum yok:

Yorum Gönder