helm install mediawiki-mariadb --set auth.rootPassword=password,auth.database=mediawiki oci://registry-1.docker.io/bitnamicharts/mariadb

From wikieduonline
Jump to navigation Jump to search

helm install mediawiki-mariadb --set auth.rootPassword=password,auth.database=mediawiki oci://registry-1.docker.io/bitnamicharts/mariadb
Pulled: registry-1.docker.io/bitnamicharts/mariadb:15.2.2
Digest: sha256:7e442823836cca3f3a40517ea8c7af03732f7d494ddab3e0be711e57a0ffc646
NAME: mediawiki-mariadb
LAST DEPLOYED: Mon Feb  5 21:36:45 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: mariadb
CHART VERSION: 15.2.2
APP VERSION: 11.2.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=mediawiki-mariadb

Services:

  echo Primary: mediawiki-mariadb.default.svc.cluster.local:3306

Administrator credentials:

  Username: root
  Password : $(kubectl get secret --namespace default mediawiki-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 mediawiki-mariadb-client --rm --tty -i --restart='Never' --image  docker.io/bitnami/mariadb:11.2.2-debian-11-r6 --namespace default --command -- bash

  2. To connect to primary service (read/write):

      mysql -h mediawiki-mariadb.default.svc.cluster.local -uroot -p mediawiki

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 mediawiki-mariadb -o jsonpath="{.data.mariadb-root-password}" | base64 -d)
      helm upgrade --namespace default mediawiki-mariadb oci://registry-1.docker.io/bitnamicharts/mariadb --set auth.rootPassword=$ROOT_PASSWORD


Related[edit]

See also[edit]

Advertising: