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

https://github.com/aliyuncontainerservice/ack-tag-tool

Simple tool to tag all Alibaba Cloud resources used in specific ACK K8s cluster.
https://github.com/aliyuncontainerservice/ack-tag-tool

ack kubernetes

Last synced: 2 months ago
JSON representation

Simple tool to tag all Alibaba Cloud resources used in specific ACK K8s cluster.

Awesome Lists containing this project

README

          

# ACK Tag Tool

Tag all Alibaba Cloud resources used in specific ACK Kubernetes cluster

# Setup

```
pip3 install -r requirements.txt
```

# Usage

Set environment variables for AK

```
export ACCESS_KEY_ID=xxxxxx
export ACCESS_KEY_SECRET=xxxxxx
```

Check resource tag for specific ACK K8s cluster

```
python3 main.py --cluster_id=xxxxxx --region=cn-beijing --key=test-key --value=test-value
```

Tag resource for specific ACK K8s cluster

```
python3 main.py --cluster_id=xxxxxx --region=cn-beijing --key=test-key --value=test-value -s
```

Untag resource for specific ACK K8s cluster

```
python3 main.py --cluster_id=xxxxxx --region=cn-beijing --key=test-key -s -u
```