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

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
  helm install my-release [[oci://]]registry-1.docker.io/bitnamicharts/mariadb
 
  helm install my-release [[oci://]]registry-1.docker.io/bitnamicharts/mariadb
  helm install my-mariadb [[--set]] [[auth.rootPassword]]=secretpassword,auth.database=app_database [[oci://]]REGISTRY_NAME/REPOSITORY_NAME/mariadb
+
  helm install my-mariadb [[--set]] [[auth.rootPassword]]=secretpassword,auth.database=app_database oci://registry-1.docker.io/bitnamicharts/mariadb
  
 
  [[helm install]] my-mariadb bitnami/mariadb
 
  [[helm install]] my-mariadb bitnami/mariadb
Line 53: Line 53:
 
  default    data-my-mariadb-0  Bound    pvc-9f38b08a-89db-4f93-98f9-921f1a5cc37d  8Gi        [[RWO]]            standard      7m38s
 
  default    data-my-mariadb-0  Bound    pvc-9f38b08a-89db-4f93-98f9-921f1a5cc37d  8Gi        [[RWO]]            standard      7m38s
  
 
+
* [[helm install]]
[[helm install]]
+
* [[helm install mediawiki]]
  
 
== See also ==
 
== See also ==

Latest revision as of 09:55, 6 February 2024

helm install my-release oci://registry-1.docker.io/bitnamicharts/mariadb
helm install my-mariadb --set auth.rootPassword=secretpassword,auth.database=app_database oci://registry-1.docker.io/bitnamicharts/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[edit]

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

See also[edit]

Advertising: