Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)