EKSctl: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
 
(19 intermediate revisions by the same user not shown)
Line 16: Line 16:
EXE
EXE
</syntaxhighlight>
</syntaxhighlight>
==Permissions Policies==
✅ AmazonEKS_CNI_Policy
✅ AmazonEKSClusterPolicy
✅ AmazonEKSWorkerNodePolicy
✅ AmazonEC2ContainerRegistryReadOnly


==Playground==
==Playground==
Line 58: Line 64:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
kubectl version --client --output=json|jq .
kubectl version --client --output=json|jq .
aws sts get-caller-identity
eksctl anywhere version
eksctl anywhere version
</syntaxhighlight>
</syntaxhighlight>


| valign="top" |
| valign="top" |
<syntaxhighlight lang="bash">
kubectl get pods -A -o wide
kubectl get nodes -o wide
kubectl get nodes -v=10
</syntaxhighlight>


|}
|}
Line 68: Line 80:
{|
{|
| valign="top" |
| valign="top" |
* [https://anywhere.eks.amazonaws.com/docs/getting-started/airgapped/ EKS » CLI » Plugins » Anywhere » Airgapped]
* [https://eksctl.io/usage/iam-identity-mappings/ EKS » CLI » IAM » Manage Users & Roles]
* [https://anywhere.eks.amazonaws.com/docs/getting-started/install/ EKS » CLI » Plugins » Anywhere]
* [https://eksctl.io/usage/minimum-iam-policies/ EKS » CLI » IAM » Permissions Boundary]
* [https://eksctl.io/usage/iam-permissions-boundary/ EKS » CLI » IAM » Minimum Policies]
* [https://eksctl.io/usage/iam-policies/ EKS » CLI » IAM » Policies]
* [https://eksctl.io/getting-started/ EKS » CLI » Introduction]
* [https://eksctl.io/getting-started/ EKS » CLI » Introduction]
* [https://eksctl.io/usage/outposts/ EKS » CLI » Outposts]
* [https://eksctl.io/usage/outposts/ EKS » CLI » Outposts]
Line 75: Line 89:
* [https://eksctl.io/usage/schema/ EKS » CLI » Schema]
* [https://eksctl.io/usage/schema/ EKS » CLI » Schema]
* [https://eksctl.io/installation/ EKS » CLI » Install]
* [https://eksctl.io/installation/ EKS » CLI » Install]
* [https://eksctl.io/ EKS]
* [https://eksctl.io/ EKS » CLI]


| valign="top" |
| valign="top" |
* [https://eksctl.io/usage/iamserviceaccounts/ EKS » CLI » IAM » EKS Pod Identity Associations]
* [https://eksctl.io/usage/pod-identity-associations/ EKS » CLI » IAM » Roles for Service Accounts]
* [https://anywhere.eks.amazonaws.com/docs/getting-started/airgapped/ EKS » CLI » Plugins » Anywhere » Airgapped]
* [https://anywhere.eks.amazonaws.com/docs/getting-started/docker/ EKS » CLI » Plugins » Anywhere » Docker]
* [https://eksctl.io/usage/vpc-subnet-settings/ EKS » CLI » VPC » Subnet Settings]
* [https://eksctl.io/usage/vpc-cluster-access/ EKS » CLI » VPC » Cluster Access]
* [https://eksctl.io/usage/vpc-configuration/ EKS » CLI » VPC » Configuration]
* [https://anywhere.eks.amazonaws.com/docs/getting-started/install/ EKS » CLI » Plugins » Anywhere]
* [https://eksctl.io/usage/vpc-networking/ EKS » CLI » VPC » Networking]
* [https://eksctl.io/usage/troubleshooting/ EKS » CLI » Troubleshooting]


| valign="top" |
| valign="top" |
* [https://eksctl.io/usage/cluster-subnets-security-groups/ EKS » CLI » VPC » Update CP Subnets & Security Groups]
* [https://eksctl.io/usage/kms-encryption/ EKS » CLI » KMS Envelope Encryption]
* [https://eksctl.io/usage/launch-template-support/ EKS » CLI » Launch Template Support]
* [https://eksctl.io/usage/nodegroup-unmanaged/ EKS » CLI » Unmanaged Nodegroups]
* [https://eksctl.io/usage/nodegroup-managed/ EKS » CLI » Managed Nodegroups]
* [https://eksctl.io/usage/gitops-v2/ EKS » CLI » GitOps with Flux v2]
* [https://eksctl.io/usage/vpc-ip-family/ EKS » CLI » VPC » IPv6 Support]
* [https://eksctl.io/usage/nodegroups/ EKS » CLI » Nodegroups]
* [https://eksctl.io/usage/eksctl-karpenter/ EKS » CLI » Karpenter]
* [https://eksctl.io/usage/security/ EKS » CLI » Security]


|-
|-
Line 98: Line 132:


| valign="top" |
| valign="top" |
* [https://aws.amazon.com/eks/pricing/ AWS » EKS » Pricing » Extended Support]
* [https://aws.amazon.com/outposts/rack/pricing/ AWS » EKS » Pricing » Outposts]
* [https://aws.amazon.com/fargate/pricing/ AWS » EKS » Pricing » Fargate]
* [https://aws.amazon.com/ec2/pricing/ AWS » EKS » Pricing » EC2]
* [https://docs.aws.amazon.com/eks/latest/userguide/quickstart.html AWS » EKS » Quick Start]
* [[Docker Compose]]
* [[Docker Compose]]
* [[Linuxbrew]]
* [[Linuxbrew]]
Line 105: Line 144:


| valign="top" |
| valign="top" |
* [https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html AWS » EKS » Kubernetes Version]
* [https://github.com/kubernetes-sigs/aws-ebs-csi-driver AWS » EKS » EBS CSI Driver]
* [https://calculator.aws/ AWS » Pricing » Calculator]
* [https://eksctl.io/usage/autoscaling/ AWS » EKS » Auto Scaling]
* [https://aws.amazon.com/contact-us/sales-support-pricing/ AWS » Pricing » Support]
* [https://aws.amazon.com/fargate/getting-started/ AWS » EKS » Fargate]
* [https://eksctl.io/usage/arm-support/ AWS » EKS » ARM]
* [https://eksctl.io/usage/gpu-support/ AWS » EKS » GPU]


|}
|}

Latest revision as of 09:00, 19 November 2024

PLATFORM=$(uname -s)_$(dpkg --print-architecture)
wget -cq https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_${PLATFORM}.tar.gz -P ${HOME}/Downloads
SUM_SUFFIX=$(curl -sL "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_checksums.txt"|grep ${PLATFORM})

cat << EXE|bash
cd ${HOME}/Downloads
echo ${SUM_SUFFIX}|sha256sum --check
tar -xzf eksctl_${PLATFORM}.tar.gz
rm  -rf  eksctl_${PLATFORM}.tar.gz
EXE

cat << EXE|sudo bash
cd ${HOME}/Downloads
mv eksctl /usr/local/bin
EXE

Permissions Policies

✅ AmazonEKS_CNI_Policy
✅ AmazonEKSClusterPolicy
✅ AmazonEKSWorkerNodePolicy
✅ AmazonEC2ContainerRegistryReadOnly

Playground

export KUBECONFIG="${HOME}/.kube/aws-kubeconfig.yaml"
aws eks update-kubeconfig --region ap-southeast-1 --name sdlc_cluster
aws eks get-token --region=ap-southeast-1 --cluster-name=sdlc_cluster
eksctl get cluster --region ap-southeast-1 --name sdlc_cluster
eksctl get cluster
eksctl version

export AWS_PROFILE=academia
aws eks list-clusters
eksctl get cluster
eksctl get labels --cluster=sdlc_cluster --nodegroup=<node_group>
eksctl get nodegroup --cluster=sdlc_cluster
eksctl utils schema

kubectl version --client --output=json|jq .
aws sts get-caller-identity
eksctl anywhere version
kubectl get pods -A -o wide
kubectl get nodes -o wide
kubectl get nodes -v=10

References