Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hedgieinsocks/kubectl-mdb
A kubectl plugin that helps interact with mariadb-operator semi-sync clusters
https://github.com/hedgieinsocks/kubectl-mdb
kubectl kubectl-plugin mariadb mariadb-operator
Last synced: 3 months ago
JSON representation
A kubectl plugin that helps interact with mariadb-operator semi-sync clusters
- Host: GitHub
- URL: https://github.com/hedgieinsocks/kubectl-mdb
- Owner: hedgieinsocks
- License: mit
- Created: 2024-08-01T06:08:14.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T08:20:35.000Z (3 months ago)
- Last Synced: 2024-11-19T09:25:47.198Z (3 months ago)
- Topics: kubectl, kubectl-plugin, mariadb, mariadb-operator
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kubectl-mdb
`kubectl-mdb` is a simple `kubectl` plugin that helps interact with [mariadb-operator](https://github.com/mariadb-operator) semi-sync replication clusters.
_This project is not affiliated with MariaDB._
## Dependencies
* `jq` - https://github.com/jqlang/jq
* `yq` - https://github.com/kislyuk/yq## Installation
Place `kubectl-mdb` into the directory within your `PATH` (e.g. `~/.local/bin` or `~/.krew/bin`)
## Customization
You can export the following variables to tweak the plugin's behaviour.
| VARIABLE | DEFAULT | DETAILS |
|------------------|-----------|------------------------------------|
| `KMDB_NAMESPACE` | `default` | default k8s namespace |## Usage
```
kubectl mdb helps interact with mariadb-operator semi-sync replication clustersUsage:
kubectl mdbAvailable Commands:
ls [] list mariadb with its pods
status show mariadb status
suspend pause mariadb reconciliation
unsuspend resume mariadb reconciliationenter exec into pod
sql launch mariadb shell
proc print processlist
du calculate database disk usage
top [] display pod cpu and ram usagerepl check pod replication status
switch promote replica pod to primaryFlags:
-n, --namespace string set namespace scope
-v, --version show plugin version
-h, --help show this message
```