add mysql ha

This commit is contained in:
2025-04-14 14:12:07 +02:00
parent 3e33b17c2c
commit 7f2240ff6a
30 changed files with 5821 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
You can create a new cluster by issuing:
cat <<EOF | kubectl apply -f-
apiVersion: mysql.presslabs.org/v1alpha1
kind: MysqlCluster
metadata:
name: my-cluster
spec:
replicas: 1
secretName: my-cluster-secret
---
apiVersion: v1
kind: Secret
metadata:
name: my-cluster-secret
type: Opaque
data:
ROOT_PASSWORD: $(echo -n "not-so-secure" | base64)
EOF