diff --git a/appz.yml b/appz.yml index 4c4b9cc..42548c9 100644 --- a/appz.yml +++ b/appz.yml @@ -4,17 +4,18 @@ notify: appzdev@cloudbourne.co build: - version: 5.7 + version: 8.0 env: DEV build_file: none output_files: output/*.zip - image_template: mysql-5.7 + image_template: mysql_master-8.0 deploy: - context: alpha/DEV + context: tradeideas/DEV type: statefulset replicas: 1 ingress: none + resources: x-large port: - 3306 @@ -22,17 +23,17 @@ - claim: mysql-data mount: /var/lib/mysql name: data - size: 5Gi + size: 250Gi - claim: mysql-backup mount: /appz/backup name: backup - size: 5Gi + size: 250Gi properties: MYSQL_ROOT_PASSWORD: vault: MYSQL_ROOT_PASSWORD_KEY - MYSQL_SPRINGBOOTWEB_PASSWORD: - vault: MYSQL_SPRINGBOOTWEB_PASSWORD - MYSQL_WORDPRESS_PASSWORD: - vault: MYSQL_WORDPRESS_PASSWORD - revision : 24 + MYSQL_TRACKER_PASSWORD: + vault: MYSQL_MYDB_PASSWORD + MYSQL_ECLOUDCONTROL_PASSWORD: + vault: MYSQL_BARS_PASSWORD + revision : 5 diff --git a/bkpsetup.yaml b/bkpsetup.yaml new file mode 100644 index 0000000..cdda16f --- /dev/null +++ b/bkpsetup.yaml @@ -0,0 +1,15 @@ +users: + - name: web_client + password: $MYSQL_MYDB_PASSWORD + +databases: + - name: mydb + - name: bars + +acl: + - database: mydb + user: web_client + access: ALL + - database: bars + user: web_client + access: ALL diff --git a/setup.yaml b/setup.yaml deleted file mode 100644 index caeaf57..0000000 --- a/setup.yaml +++ /dev/null @@ -1,26 +0,0 @@ - -users: - - name: springboot-web - password: $MYSQL_SPRINGBOOTWEB_PASSWORD - - name: wordpress - password: $MYSQL_WORDPRESS_PASSWORD - -databases: - - name: springboot_web - - name: wordpress - -acl: - - database: springboot_web - user: springboot-web - access: ALL - - database: wordpress - user: wordpress - access: ALL - -restore: - - database: springboot_web - source: - url: 'https://www.ecloudcontrol.com/wp-content/uploads/2020/12/accountdb_20201210.zip' - user: root - password: $MYSQL_ROOT_PASSWORD_KEY # password of the 'user' above. - token: 20210318-1843 # The restore token to be validated before restoring the database. (Same as TEARDOWN_TOKEN)