{"id":13625556,"url":"https://github.com/gites/k8s-mysql-group-replication","last_synced_at":"2026-02-23T05:05:54.644Z","repository":{"id":88513703,"uuid":"115612844","full_name":"gites/k8s-mysql-group-replication","owner":"gites","description":"PoC for setting up MySQL Group Replication on Kubernetes","archived":false,"fork":false,"pushed_at":"2018-11-22T13:49:39.000Z","size":16,"stargazers_count":25,"open_issues_count":1,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-08T14:42:49.394Z","etag":null,"topics":["k8s","kubernetes","mysql-replication","poc","statefulsets"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gites.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-12-28T10:33:20.000Z","updated_at":"2024-07-07T14:54:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1cba662-99a0-4a89-9937-4842a4bf85c0","html_url":"https://github.com/gites/k8s-mysql-group-replication","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gites/k8s-mysql-group-replication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gites%2Fk8s-mysql-group-replication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gites%2Fk8s-mysql-group-replication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gites%2Fk8s-mysql-group-replication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gites%2Fk8s-mysql-group-replication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gites","download_url":"https://codeload.github.com/gites/k8s-mysql-group-replication/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gites%2Fk8s-mysql-group-replication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29738083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T04:51:08.365Z","status":"ssl_error","status_checked_at":"2026-02-23T04:49:15.865Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["k8s","kubernetes","mysql-replication","poc","statefulsets"],"created_at":"2024-08-01T21:01:57.630Z","updated_at":"2026-02-23T05:05:54.628Z","avatar_url":"https://github.com/gites.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# This repo is DEPRECATED\n\nPlease use official MySQL operator instead --\u003e https://github.com/oracle/mysql-operator\n\n# k8s-mysql-group-replication\nPoC for setting up MySQL Group Replication in Master-Master mode on Kubernetes\n\nThis work is based on K8s Statefull Sets documentation [https://kubernetes.io/docs/tasks/run-application/run-replicated-stateful-application/]\n\n# Requirements\n- PersistentVolume provisioner with a default StorageClass (or statically provisioned PersistentVolumes)\n- Kubernetes Cluster v 1.9 (StatefulSets are stable (GA) in 1.9)\n\n# Deployment and scaling\n```\n# kubectl apply -f *.yaml\n\n# kubectl get pods\nNAME      READY     STATUS    RESTARTS   AGE\nmysql-0   2/2       Running   0          10s\n```\n```\n# kubectl scale statefulset --replicas=3 mysql\n# kubectl get pods\nNAME      READY     STATUS    RESTARTS   AGE\nmysql-0   2/2       Running   0          10m\nmysql-1   2/2       Running   0          5md\nmysql-2   0/2       Pending   0          14s\n```\n```\n# kubectl -n mysql-test exec -ti mysql-0 mysql -- mysql -e'select * from performance_schema.replication_group_members;'\nDefaulting container name to mysql.\nUse 'kubectl describe pod/mysql-0 -n mysql-test' to see all of the containers in this pod.\n+---------------------------+--------------------------------------+---------------+-------------+--------------+\n| CHANNEL_NAME              | MEMBER_ID                            | MEMBER_HOST   | MEMBER_PORT | MEMBER_STATE |\n+---------------------------+--------------------------------------+---------------+-------------+--------------+\n| group_replication_applier | 14d265ce-e714-11e7-83eb-2a28a3915e90 | mysql-0.mysql |        3306 | ONLINE       |\n| group_replication_applier | 331149cf-e714-11e7-999d-ea83a38cf6a7 | mysql-1.mysql |        3306 | ONLINE       |\n| group_replication_applier | c9d9f4a8-ebd1-11e7-afe2-0e373b025b47 | mysql-2.mysql |        3306 | ONLINE       |\n+---------------------------+--------------------------------------+---------------+-------------+--------------+\n```\n# Future work\n- scripts cleanup\n- integrate with ProxySQL\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgites%2Fk8s-mysql-group-replication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgites%2Fk8s-mysql-group-replication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgites%2Fk8s-mysql-group-replication/lists"}