In the previous section, I have setup the environment as well as the necessary things, to this article I will install AWS development eksctl.
Setup eksctl
1 2 3 4 | curl --silent --location "https://github.com/weaveworks/eksctl/releases/download/latest_release/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp sudo mv -v /tmp/eksctl /usr/local/bin |
Check version:
1 2 | eksctl version |
If it displays [ℹ] version.Info{BuiltAt:"", GitCommit:"", GitTag:"0.12.0"
, the installation was successful.
Enable eksctl in bash-completion
1 2 3 4 | eksctl completion bash >> ~/.bash_completion . /etc/profile.d/bash_completion.sh . ~/.bash_completion |
Create EKS Cluster
1 2 | eksctl create cluster --name=eks-eksctl --nodes=3 --node-type=t2.medium --managed --alb-ingress-access --region=${AWS_REGION} |
Remember to set the eks-admin
permissions for the instance, otherwise it is an error
This statement has the meaning of creating a cluster with name eks-eksctl including 3 worker node servers configured in t2.micro format (1 CPU, 1G RAM, less money, you should use lepers, if –node-type is not there then The default is t5.large) If you wait for about 15 minutes, AWS will configure it all for you, very convenient.
Deploy Dashboard kubernetes
1 2 | kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml |
grant access with proxy
1 2 | kubectl proxy --port=8080 --address='0.0.0.0' --disable-filter=true & |
Access dashboard kubernetes
In cloud9, go to Tools / Preview / Preview Running Application
At the end of the URL, type in more
1 2 | /api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/ |
Open a new terminal
1 2 | aws eks get-token --cluster-name eks-eksctl | jq -r '.status.token' |
To get tokens, they will paste them as shown to enter
We have now entered the kubernetes dashboard
Next
We will deploy simple air-viewer on AWS.