Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: 4 days ago
JSON representation

A kubectl plugin that helps interact with mariadb-operator semi-sync clusters

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 clusters

Usage:
kubectl mdb

Available Commands:
list|ls list mariadbs and pods
status|st show mariadb status
enter|ent enter a mariadb pod
mysql|sql launch mysql shell
proc|pr show mysql processlist
disk|du calculate database disk usage
repl|rpl check replication status
trans|tr skip errant transactions
promote|prom promote replica to primary

Flags:
-n, --namespace string set namespace scope
-v, --version show plugin version
-h, --help show this message
```