https://github.com/superseb/kubectl-eks
https://github.com/superseb/kubectl-eks
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/superseb/kubectl-eks
- Owner: superseb
- Created: 2018-06-20T17:34:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-20T17:59:32.000Z (about 8 years ago)
- Last Synced: 2025-03-21T11:17:55.775Z (over 1 year ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EKS kubectl Docker image
## How to use
By providing the necessary information in environment variables, the kubectl config is automatically completed and you can start using `kubectl` commands straight away. Kubectl config is located at `/root/.kube/config`, template is in this repo called `kubectlconfig`.
```
$ docker run -e AUTOCONFIG=true \
-e CLUSTER_NAME=your_eks_cluster_name \
-e AWS_ACCESS_KEY_ID=your_aws_access_key \
-e AWS_SECRET_ACCESS_KEY=your_aws_secret_key \
-e AWS_DEFAULT_REGION=your_aws_eks_region \
-ti superseb/kubectl-eks
CLUSTER_ENDPOINT: "https://xxx"
CLUSTER_BASE64: "LS0..."
bash-4.4# kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.100.0.1 443/TCP 2h
```