{"id":19196995,"url":"https://github.com/jitesoft/mariadb-operator","last_synced_at":"2025-07-07T05:37:39.245Z","repository":{"id":45053705,"uuid":"440438678","full_name":"jitesoft/mariadb-operator","owner":"jitesoft","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-19T08:59:50.000Z","size":75,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T04:45:10.575Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jitesoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-21T08:09:03.000Z","updated_at":"2022-07-04T08:36:24.000Z","dependencies_parsed_at":"2022-09-23T10:24:51.858Z","dependency_job_id":null,"html_url":"https://github.com/jitesoft/mariadb-operator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jitesoft/mariadb-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fmariadb-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fmariadb-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fmariadb-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fmariadb-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jitesoft","download_url":"https://codeload.github.com/jitesoft/mariadb-operator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fmariadb-operator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264021378,"owners_count":23545489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T12:15:11.397Z","updated_at":"2025-07-07T05:37:39.224Z","avatar_url":"https://github.com/jitesoft.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MariaDB Operator\n\nKubernetes operator for mariadb.  \nThe operator is currently in alpha and should be treated as such.  \nThe code itself is quite messy and only manually tested (tests are coming!).\n\n## Whats\n\n### What it does\n\nThe operator checks for Custom Resources named `MariaDB`, when one is found,\nit will create a deployment (single instance at the moment) with the specs passed\nin the CRD and if specified a persistent volume claim for the database data.  \n\nOn resource updates, it will replace the currently deployed mariadb instance\nwith a new one.\n\nOn resource removal, the deployment is removed.\n\n_Observe: PVCs created are not currently removed._\n\n### What it should do more\n\n  * Create clusters with new `MariaDBCluster` CRD.\n  * Create service for multi instance databases.\n  * Create Service for single instance databases.\n  * Multi operator instances with leader election.\n  * Optional PVC cleanup.\n\n### What it might do more\n\n  * Create databases in existing resources with new `MariaDBDatabase` CRD.\n  * Create users in existing resources with new `MariaDBUser` CRD.\n  * Create backups with a sidecar and spec via new `MariaDBBackup` CRD.\n\n## How\n\n### Installation\n\nInstalling the operator is done by applying the files in `kube/`, the folder\ncontains the `MariaDB` CRD, cluster wide RBAC (which you may change to namespaced if wanted)\nand the operator deployment.  \n  \nCurrently, due to limitations of the SDK, the operator is a single instance operator,\ndeploying multiple cluster-wide operators or operators in the same namespace\n(or cluster wide + namespaced) will make the operators fight about the ownership, which is bad.\n\n```shell\nkubectl apply -f https://raw.githubusercontent.com/jitesoft/mariadb-operator/master/kube/rbac-cluster.yml\nkubectl apply -f https://raw.githubusercontent.com/jitesoft/mariadb-operator/master/kube/crd.yml\nkubectl apply -f https://raw.githubusercontent.com/jitesoft/mariadb-operator/master/kube/deployment.yml\n```\n\n### Helm?\n\nNo helm deployment exist yet, in case the operator is received well, there might be!\n\n### Usage\n\nCreate a new MariaDB resource:\n\n```yaml\napiVersion: jitesoft.tech/v1alpha1\nkind: MariaDB\nmetadata:\n  name: test-mariadb\n  namespace: default\nspec:\n  dbName: just-a-db\n  dbUser: testuser\n  dbPasswordSecretName: test-maria-secret\n  dataVolumeClaim:\n    size: 10Gi\n    storageType: hcloud-volumes\n```\n\nDone!\n\n## License and such\n\nThe code for the operator is released under the [MIT](LICENSE) license.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fmariadb-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjitesoft%2Fmariadb-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fmariadb-operator/lists"}