Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miteshsharma/eksauth
Making request to EKS cluster using go API with information provided in kubectl file
https://github.com/miteshsharma/eksauth
aws aws-iam-authenticator eks go kubernetes
Last synced: about 1 month ago
JSON representation
Making request to EKS cluster using go API with information provided in kubectl file
- Host: GitHub
- URL: https://github.com/miteshsharma/eksauth
- Owner: MiteshSharma
- Created: 2021-08-08T14:14:40.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-08T14:29:30.000Z (over 3 years ago)
- Last Synced: 2024-11-06T10:12:04.409Z (3 months ago)
- Topics: aws, aws-iam-authenticator, eks, go, kubernetes
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EksAuth
In this project, we are making API request to EKS cluster with information provided in kubeconfig file and AWS credentials using aws-iam-authenticator.
Needed variables:
1. certificateAuthorityDataFile: This file contains certificate data which is stored as base64 in kubeconfig file as variable certificate-authority-data.
2. clusterName: Name of cluster
3. clusterServerUrl: Cluster server url to make request to server
4. AWS details: Need aws access key, secret and region to authenticate with help of aws-iam-authenticator to authenticate with EKS cluster
5. clusterId: This is unique cluster identifier. Detail: https://github.com/kubernetes-sigs/aws-iam-authenticator#what-is-a-cluster-idOnce all information is updated in main.go, command to run main.go file:
```
go run main.go
```