In this blog, you will get to know how to Manage EKS Cluster in FreeBSD by using kubectl cli. Download the kubectl binary file from this repo https://gitlab.com/freebsd1/kubectl/-/blob/main/kubectl-1.23.6.pkg and install it on BSD’s machine by using the below command,
# pkg add kubectl-1.23.6.pkg
Once the package is installed, its version can be checked as shown below picture,
# kubectl version –short # kubectl version –client
The next step in Managing EKS Cluster in FreeBSD is to install awscli, according to me best way to install awscli is through pip. If you have already python on your machine, you can skip the python installation and move on to awscli installation.
# pkg install python3 # pip install awscli
Once it is installed, need to configure the EKS cluster through awscli. Follow the below steps to do so,
- Configure the IAM user to access the cluster with the respective access & secret keys, please note the EKS cluster must be created with this IAM user.
# aws configure set aws_access_key_id “<aws-access-key>” # aws configure set aws_secret_access_key “<aws-secret-key>”
- Run the below command to know your region and account ID is mapped successfully.
# aws sts get-caller-identity
- Below command will automatically update the kubeconfig file with the cluster details.
# aws eks update-kubeconfig --region <region-name> --name <cluster-name> # kubectl config get-contexts
That’s it, EKS cluster details are updated in kubeconfig and it can be managed directly via kubectl. To get the node details in that cluster,
# kubectl get nodes
Your feedback/suggestions about this blog Manage EKS Cluster in FreeBSD are appreciated. Post your feedback @ support@assistanz.com