GithubHelp home page GithubHelp logo

Comments (2)

mmontes11 avatar mmontes11 commented on May 18, 2024 1

Thanks a lot!

Regarding the helm repo, I've just updated the docs pointing to the new one (https://charts.mmontes.duckdns.org ). We have some plans to improve the experience installing our chart:

MariaDB Version Tags are immutable
What is the recommanded upgrade path

That's right, this is not documented yet but the unoficial approach would be:

  1. Create a MariaDB resource
apiVersion: database.mmontes.io/v1alpha1
kind: MariaDB
metadata:
  name: mariadb
spec:
  rootPasswordSecretKeyRef:
    name: mariadb
    key: root-password
  image:
    repository: mariadb
    tag: "10.7.4"
    pullPolicy: IfNotPresent
  port: 3306
  volumeClaimTemplate:
    resources:
      requests:
        storage: 100Mi
    storageClassName: standard
    accessModes:
      - ReadWriteOnce
  1. Take a backup
apiVersion: database.mmontes.io/v1alpha1
kind: BackupMariaDB
metadata:
  name: backup
spec:
  mariaDbRef:
    name: mariadb
  storage:
    persistentVolumeClaim:
      resources:
        requests:
          storage: 100Mi
      storageClassName: standard
      accessModes:
        - ReadWriteOnce
  1. Create a new MariaDB instance bumping the version and bootstrapping from backup:
apiVersion: database.mmontes.io/v1alpha1
kind: MariaDB
metadata:
 name: mariadb-from-backup
spec:
 rootPasswordSecretKeyRef:
   name: mariadb
   key: root-password
 image:
   repository: mariadb
   tag: "10.9.4"
   pullPolicy: IfNotPresent
 port: 3306
 volumeClaimTemplate:
   resources:
     requests:
       storage: 100Mi
   storageClassName: standard
   accessModes:
     - ReadWriteOnce
 bootstrapFromBackupRef:
   name: backup

When the new one is marked as Ready you can swap the labels in your Service to forward the traffic to it. I hope it makes sense, let me know otherwise.

We have plans to create a proper documentation with this kind of scenarios:

from mariadb-operator.

mmontes11 avatar mmontes11 commented on May 18, 2024 1

Closing. Please @pmig reopen if you need further help.

from mariadb-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.