Create MariaDB Root Password Secret

Create a file named mariadb-secret.yaml with following content.

apiVersion: v1
data:
  password: ${BASE64_PASSWORD}
kind: Secret
metadata:
  name: mariadb-root-password
type: Opaque

Change the following properties:

Note down the metadata.name. It is required create Jobs to add new sites or to restore backups.

Create the resource using:

$ kubectl create -n <namespace> -f mariadb-secret.yaml

Note that the <namespace> in here should be the ERPNext deployment namespace and not the MariaDB namespace.