Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neilkuan/cdk-lambda-container-kubectl
cdk-lambda-container-kubectl
https://github.com/neilkuan/cdk-lambda-container-kubectl
Last synced: 9 days ago
JSON representation
cdk-lambda-container-kubectl
- Host: GitHub
- URL: https://github.com/neilkuan/cdk-lambda-container-kubectl
- Owner: neilkuan
- License: apache-2.0
- Created: 2021-01-13T09:35:23.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-31T01:15:50.000Z (over 3 years ago)
- Last Synced: 2024-10-06T10:11:20.184Z (about 1 month ago)
- Language: Python
- Size: 336 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Get EKS resource via apigateway and lambda
```bash
#export ENVVARS
export CLUSTER_ADMIN_ROLE_ARN="arn:aws:iam::123456789012:role/eksadminMastersRole"
export CLUSTER_NAME="mycluster_name"#To synth
cdk synth -c CLUSTER_ADMIN_ROLE_ARN=$CLUSTER_ADMIN_ROLE_ARN -c CLUSTER_NAME=$CLUSTER_NAME#To Diff
cdk diff -c -c CLUSTER_ADMIN_ROLE_ARN=$CLUSTER_ADMIN_ROLE_ARN -c CLUSTER_NAME=$CLUSTER_NAME#To Deploy
cdk deploy --require-approval never -c CLUSTER_ADMIN_ROLE_ARN=$CLUSTER_ADMIN_ROLE_ARN -c CLUSTER_NAME=$CLUSTER_NAME#To Destroy
cdk destroy -f✅ imagecode
Outputs:
imagecode.URL = https://xxxxxxx.execute-api.ap-northeast-1.amazonaws.com/invoke url https://xxxxxxx.execute-api.ap-northeast-1.amazonaws.com/app/
```### Example
#### default get all namespace pod .
#### get service -n kube-system
![](image/1.png)#### get pod -n kube-system
![](image/2.png)