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: 3 months 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:
ls [] list mariadb with its pods
status show mariadb status
suspend pause mariadb reconciliation
unsuspend resume mariadb reconciliation

enter exec into pod
sql launch mariadb shell
proc print processlist
du calculate database disk usage
top [] display pod cpu and ram usage

repl check pod replication status
switch promote replica pod to primary

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