Difference between revisions of "Helm install my-mariadb bitnami/mariadb"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
  [[helm install]] my-mariadb bitnami/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
 
<pre>
 
<pre>
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:
 
Administrator credentials:
  

Revision as of 18:41, 22 October 2023

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


See also

Advertising: