Difference between revisions of "Helm install my-mariadb bitnami/mariadb"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
[[helm install]] my-mariadb bitnami/mariadb | [[helm install]] my-mariadb bitnami/mariadb | ||
+ | helm install my-mariadb \ | ||
+ | [[--set]] [[auth.rootPassword]]=secretpassword,auth.database=app_database \ | ||
+ | oci://REGISTRY_NAME/REPOSITORY_NAME/mariadb | ||
+ | [[helm install]] my-mariadb bitnami/mariadb | ||
NAME: my-mariadb | NAME: my-mariadb | ||
LAST DEPLOYED: Sun Oct 22 20:36:26 2023 | LAST DEPLOYED: Sun Oct 22 20:36:26 2023 |
Revision as of 19:40, 8 November 2023
helm install my-mariadb bitnami/mariadb helm install my-mariadb \ --set auth.rootPassword=secretpassword,auth.database=app_database \ oci://REGISTRY_NAME/REPOSITORY_NAME/mariadb
helm install my-mariadb bitnami/mariadb NAME: my-mariadb LAST DEPLOYED: Sun Oct 22 20:36:26 2023 NAMESPACE: default STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: CHART NAME: mariadb CHART VERSION: 14.0.3 APP VERSION: 11.1.2 ** Please be patient while the chart is being deployed ** Tip: Watch the deployment status using the command: kubectl get pods -w --namespace default -l app.kubernetes.io/instance=my- mariadb Services: echo Primary: my-mariadb.default.svc.cluster.local:3306
Administrator credentials: Username: root Password : $(kubectl get secret --namespace default my-mariadb -o jsonpath="{.data.mariadb-root-password}" | base64 -d) To connect to your database: 1. Run a pod that you can use as a client: kubectl run my-mariadb-client --rm --tty -i --restart='Never' --image docker.io/bitnami/mariadb:11.1.2-debian-11-r1 --namespace default --command -- bash 2. To connect to primary service (read/write): mysql -h my-mariadb.default.svc.cluster.local -uroot -p my_database To upgrade this helm chart: 1. Obtain the password as described on the 'Administrator credentials' section and set the 'auth.rootPassword' parameter as shown below:
ROOT_PASSWORD=$(kubectl get secret --namespace default my-mariadb -o jsonpath="{.data.mariadb-root-password}" | base64 -d) helm upgrade --namespace default my-mariadb oci://registry-1.docker.io/bitnamicharts/mariadb --set auth.rootPassword=$ROOT_PASSWORD
Related
k get pvc -A NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE default data-my-mariadb-0 Bound pvc-9f38b08a-89db-4f93-98f9-921f1a5cc37d 8Gi RWO standard 7m38s
helm install
See also
- MariaDB:
mariadbcheck
,mariabackup
,mysqldump
, MyRocks,show (MariaDB)
MariaDB Changelog,50-server.cnf
, MariaDB engines, .ibd, .myd, .myi,/var/log/mysql/error.log, /var/log/mysql/mariadb-slow.log
, MariaDB files:.frm
,.ibd
,/etc/mysql/mariadb.conf.d/50-server.cnf
, replication, MariaDB slow queries,show databases;
, Aria, MyISAM, MariaDB SkySQL, binary log, 3306,/etc/mysql/
Advertising: