apecloud/kubeblocks-skills/kubeblocks-addon-mysql
Claude Code and agent skill by apecloud/kubeblocks-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Legacy compatibility shim for MySQL provisioning on KubeBlocks. The primary create-time entry is kubeblocks-engine-mysql. Keep this skill callable for older references, but do not recommend it as the main path for cold-start agents.
Install
npx vskill@latest install apecloud/kubeblocks-skills/kubeblocks-addon-mysqlSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as apecloud/kubeblocks-skills/kubeblocks-addon-mysql.
Deploy MySQL on KubeBlocks
Legacy compatibility shim. Primary entry: kubeblocks-engine-mysql. Keep the preserved workflow below for detailed reference, but do not recommend this skill as the main path for cold-start agents.
Overview
Deploy highly-available MySQL clusters using KubeBlocks. Multiple topologies are available — from simple semi-synchronous replication to full orchestrator-managed setups with ProxySQL.
Official docs: https://kubeblocks.io/docs/preview/user_docs/kubeblocks-for-mysql/cluster-management/create-and-connect-a-mysql-cluster Full doc index: https://kubeblocks.io/llms-full.txt
Prerequisites
- A running Kubernetes cluster with KubeBlocks installed (see install-kubeblocks)
- For first-time rollout or unknown environment readiness, run kubeblocks-preflight first and carry its recommendation bundle into this skill.
- The MySQL addon must be enabled:
Available Topologies
| Topology | Value | Components | Use Case | |
|---|---|---|---|---|
| Semi-Synchronous | semisync | mysql | Standard HA, 2+ replicas | |
| Semi-Sync + ProxySQL | semisync-proxysql | mysql + proxysql | HA with query routing | |
| Group Replication | mgr | mysql | Multi-primary capable, 3+ replicas | |
| MGR + ProxySQL | mgr-proxysql | mysql + proxysql | MGR with load balancing | |
| Orchestrator | orc | mysql + orchestrator | External HA manager | |
| Orc + ProxySQL | orc-proxysql | mysql + orc + proxysql | Full HA stack |
Default recommendation: semisync — simplest, most widely deployed.
Keep these decisions visible in this engine-entry skill:
- topology
- serviceVersion
storageClassNamefrom preflight- demo vs production sizing
Supported Versions
| Version | serviceVersion | |
|---|---|---|
| MySQL 5.7 | 5.7.44 | |
| MySQL 8.0 | 8.0.33, 8.0.35 | |
| MySQL 8.4 | 8.4.2 |
Workflow
Step 1: Ensure Addon Is Installed
If not found, install it:
Step 2: Create Namespace
Step 3: Create Cluster
Semi-Synchronous Replication (Recommended)
This is the most common topology. One primary + one or more replicas with semi-sync replication for data safety.
Apply:
Group Replication (MGR)
Multi-primary capable. Requires 3+ replicas:
For topologies with ProxySQL or Orchestrator, see reference.md.
Step 4: Wait for Cluster Ready
Wait until STATUS shows Running. Typical startup time: 1-3 minutes.
Check component status:
Step 5: Connect to MySQL
Get Credentials
The root password is stored in a Kubernetes secret:
Connect via kubectl exec
Connect via Port-Forward
Backup
MySQL supports three backup methods:
| Method | ActionSet | Use Case | |
|---|---|---|---|
| XtraBackup | xtrabackup | Physical backup, fast for large DBs | |
| Volume Snapshot | mysql-volumesnapshot | Storage-level snapshots, fastest | |
| Binlog Archive | archive-binlog | Continuous archiving for PITR |
Example backup:
Troubleshooting
Cluster stuck in Creating:
Pod CrashLoopBackOff:
Semi-sync replica not connecting:
- Ensure
replicas >= 2for semisync topology - Check network policies between pods
Day-2 Operations
| Operation | Skill | External Docs | |
|---|---|---|---|
| Stop / Start / Restart | cluster-lifecycle | Docs | |
| Scale CPU / Memory | vertical-scaling | Docs | |
| Add / Remove replicas | horizontal-scaling | Docs | |
| Expand storage | volume-expansion | Docs | |
| Change parameters | reconfigure-parameters | Docs | |
| Switchover primary | switchover | Docs | |
| Upgrade engine version | minor-version-upgrade | Docs | |
| Expose externally | expose-service | Docs | |
| Backup | backup | Docs | |
| Restore | restore | Docs |
Safety Patterns
Follow safety-patterns.md for dry-run before apply, status confirmation after watch, and pre-deletion checklist.
Next Steps
- For detailed YAML examples of all topologies, see reference.md
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/kubeblocks-addon-mysql/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/apecloud/kubeblocks-skills/kubeblocks-addon-mysql)