curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv /tmp/eksctl /usr/local/bin
eksctl version
Download latest version from here.
sudo curl --silent --location -o /usr/local/bin/kubectl https://s3.us-west-2.amazonaws.com/amazon-eks/1.30.0/2024-05-12/bin/linux/amd64/kubectl
sudo chmod +x /usr/local/bin/kubectl
kubectl version --client
eksctl create cluster --name=my-eks \
--region=us-east-1 \
--zones=us-east-1a,us-east-1b \
--version=1.30 \
--without-nodegroup
eksctl utils associate-iam-oidc-provider \
--region us-east-1 \
--cluster my-eks \
--approve
eksctl create nodegroup --cluster=my-eks \
--region=us-east-1 \
--name=node2 \
--node-type=t3.medium \
--nodes=3 \
--nodes-min=2 \
--nodes-max=4 \
--node-volume-size=20 \
--ssh-access \
--ssh-public-key=Key \
--managed \
--asg-access \
--external-dns-access \
--full-ecr-access \
--appmesh-access \
--alb-ingress-access
git clone https://github.com/Pramod858/K8S.git
cd K8S
chmod +x *
or
cd K8S
find . -type f -not -name 'README.md' -exec chmod +x {} +
kubectl create ns webapps
kubectl apply -f service_account.yaml
kubectl apply -f create_role.yaml
kubectl apply -f bind_role_to_service.yaml
7. Create Secret (Ref.)
kubectl apply -f create_secret.yaml -n webapps
kubectl describe secret mysecretname -n webapps