Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sncf-connect-tech/orka-tools
Utility scripts for Orka by MacStadium
https://github.com/sncf-connect-tech/orka-tools
cli macos orka python
Last synced: 13 days ago
JSON representation
Utility scripts for Orka by MacStadium
- Host: GitHub
- URL: https://github.com/sncf-connect-tech/orka-tools
- Owner: sncf-connect-tech
- License: mit
- Created: 2021-06-12T12:50:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-04T09:18:24.000Z (over 1 year ago)
- Last Synced: 2024-11-06T05:14:25.153Z (2 months ago)
- Topics: cli, macos, orka, python
- Language: Python
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Audit: audit_vms.py
Awesome Lists containing this project
README
# orka-tools
[![build status](https://github.com/voyages-sncf-technologies/orka-tools/workflows/build/badge.svg)](https://github.com/voyages-sncf-technologies/orka-tools/actions?query=branch%3Amain)
Orka documentation: https://orkadocs.macstadium.com/docs
## Scripts
* `audit_vms.py`: look for "suspicious" VMs that have been running for several hours on an Orka cluster
* `dump_logs.py` & `logs_stats.py`: retrieve & analyse Orka cluster logs
* `orka.py`: an alternate implementation of the Orka CLI that better suits our needs## Installation
pip install -r requirements.txt
## Usage
First, you need to define some environment variables:
export ORKA_CONTROLLER_URL=
export ORKA_USER_EMAIL=...
export ORKA_LICENSE_KEY=
export ORKA_PASSWORD=You can pass `--help` to any of the scripts to get a detailed description of the arguments & sub-commands it supports.
For example, to quickly connect to a VM through SSH:
ssh $SSH_USER@$(./orka.py vm get ssh_args --vm $VM_NAME)
Or:
sshpass -p $SSH_PASSWORD ssh $SSH_USER@$(./orka.py vm get ssh_args --vm $VM_NAME)