# Get TiDB Clusters' K8s Status

## Usage

```bash
# Build the docker image
cd /home/ssm-user/huaxi
sudo docker build -t eks-stat:latest .

# Run the python program in the docker container
sudo docker run --rm -v /home/ssm-user/huaxi/:/code -v /home/ssm-user/oncall-config/infra-api.kubeconfig:/kube/infra-api.kubeconfig:ro eks-stat:latest python eks-stats.py

# Upload the result to S3
aws s3 cp ./eks_with_tidb_clusters.csv s3://dbaas-diagnose/huaxi/
```
