This program intends to list existing deployments of Cosmo Tech platforms.
It will reach Kubernetes clusters to informations from:
- Kubernetes clusters
- Cosmo Tech API
- Azure resources
Inventory of the day is stored in a dedicated directory, in JSON format, and converted to Markdown format to a unique directory.
This program uses a dedicated file instead of the default
$USER/.kube/configfile.
It can be configured in.envfile (configured as_kubeconfigin.env.example)
- Get contexts
- Azure AKS
az aks get-credentials --resource-group CLUSTER_RESOURCE_GROUP --name CLUSTER_NAME --file _kubeconfig - AWS EKS
sh -c 'aws eks update-kubeconfig --name $0 --alias $0 --kubeconfig _kubeconfig' CLUSTER_NAME
- Azure AKS
- Clone current repo
git clone [email protected]:Cosmo-Tech/apinventory.git && cd apinventory - Get
.envcurl https://raw.githubusercontent.com/Cosmo-Tech/apinventory/refs/heads/main/.env.example -o .env - Python venv
- install
python -m venv .venv - activate
source .venv/bin/activate - install requirements
python -m pip install -r requirements.txt
- install
- Start
python -m main
- Get
docker-compose.yamlcurl -O https://raw.githubusercontent.com/Cosmo-Tech/apinventory/refs/heads/main/docker-compose.yaml - Get
.envcurl https://raw.githubusercontent.com/Cosmo-Tech/apinventory/refs/heads/main/.env.example -o .env - Fill
.envaccording to your needs - Start
docker compose up -d
Page name is
[cluster] cluster_name
| Item | Value |
|---|---|
| Name | name |
| Version | version |
| Region | region |
| URL | url |
| Keycloak | url |
| Grafana | url |
| Harbor | url |
| Namespace | Name | Chart version | App version |
|---|---|---|---|
| 1. namespace | 1. name | 1. version | 1. version |
| 1. namespace | 2. name | 2. version | 2. version |
| 1. namespace | n. name | n. version | n. version |
Page name is
[tenant] tenant_name
| Item | Value |
|---|---|
| Swagger URL | url |
| Azure resource 1 | name |
| Azure resource 2 | name |
| Azure resource n | name |
| Namespace | Name | Chart version | App version |
|---|---|---|---|
| 1. namespace | 1. name | 1. version | 1. version |
| 1. namespace | 2. name | 2. version | 2. version |
| 1. namespace | n. name | n. version | n. version |
Page name is
[workspace] workspace_name
| Item | Value |
|---|---|
| tenant_name | name |
| organization_id | id |
| workspace_id | id |
| solution_id | id |
| organization_name | name |
| workspace_name | name |
| solution_name | name |
| solution_repository | repository |
| solution_version | version |
| webapp_url | url |
| inventory_date | date |
Made with ❤️ by Cosmo Tech DevOps team