English | 简体中文
- Build an operator image and push it to Docker Hub.
docker build -t {your repo}/mysql-operator:{your tag} . && docker push {your repo}/mysql-operator:{your tag}
- Add the Helm repository of RadonDB MySQL.
helm repo add radondb https://radondb.github.io/radondb-mysql-kubernetes/
- Install/Update the operator using the image.
helm upgrade demo radondb/mysql-operator --install --set manager.image={your repo}/mysql-operator --set manager.tag={your tag}
- Build a sidecar image and push it to Docker Hub.
docker build -f Dockerfile.sidecar -t {your repo}/mysql-sidecar:{your tag} . && docker push {your repo}/mysql-sidecar:{your tag}
- Create a sample cluster.
kubectl apply -f https://github.com/radondb/radondb-mysql-kubernetes/releases/latest/download/mysql_v1alpha1_mysqlcluster.yaml
- Apply the image to the cluster.
kubectl patch mysql sample -p '{"spec": {"podPolicy": {"sidecarImage": "{your repo}/mysql-sidecar:{your tag}"}}}' --type=merge
You can use your own cluster name to replace
sample
.