Skip to content

Commit 99957f8

Browse files
committed
Update aws-eks.md
1 parent ec1ea99 commit 99957f8

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

docs/notes/cloud/aws-eks.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# AWS EKS | Notes
22

3+
## Download eksctl
4+
5+
```sh
6+
wget -qO ~/Downloads/eksctl.tar.gz "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_Linux_amd64.tar.gz"
7+
tar xfz ~/Downloads/eksctl.tar.gz -C ~/Downloads/
8+
mv ~/Downloads/eksctl ~/bin/
9+
chmod u+x ~/bin/eksctl
10+
```
11+
312
## Create a cluster
413

514
- Create a cluster
@@ -28,6 +37,44 @@ eksctl create cluster \
2837
--with-oidc
2938
```
3039

40+
## Login
41+
42+
- Get kubeconfig
43+
44+
```sh
45+
KUBECONFIG=~/.kube/config-tmp
46+
CLUSTER_NAME=mrb-lab-topology
47+
AWS_REGION=us-east-1
48+
aws eks update-kubeconfig --region $AWS_REGION --name $CLUSTER_NAME --kubeconfig $KUBECONFIG
49+
```
50+
51+
## Auto-mode full acces
52+
53+
- Create a cluster with Auto-mode
54+
55+
```sh
56+
CLUSTER_NAME=mrb-am
57+
AWS_REGIOn=us-east-1
58+
59+
eksctl create cluster \
60+
--name $CLUSTER_NAME \
61+
--region $AWS_REGION \
62+
--version 1.33 \
63+
--enable-auto-mode \
64+
--zones us-east-1a,us-east-1b \
65+
--kubeconfig ~/.kube/eks
66+
```
67+
68+
Access the cluster
69+
70+
```sh
71+
$ kubectl --kubeconfig=/home/mtulio/.kube/eks get nodes
72+
```
73+
74+
## Launch ML instances with Auto Mode
75+
76+
TODO
77+
3178
## Destroy a cluster
3279

3380
```bash

0 commit comments

Comments
 (0)