APPUNTI

Da GazziNet.
Versione del 19 mag 2024 alle 20:58 di Admin (discussione | contributi) (Creata pagina con "[root@kuber01 ~]# helm install mariadb bitnami/mariadb --namespace default -f values.yaml NAME: mariadb LAST DEPLOYED: Sun May 19 21:41:41 2024 NAMESPACE: default STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: CHART NAME: mariadb CHART VERSION: 18.0.6 APP VERSION: 11.3.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=mariadb Ser...")
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)
Vai alla navigazione Vai alla ricerca

[root@kuber01 ~]# helm install mariadb bitnami/mariadb --namespace default -f values.yaml NAME: mariadb LAST DEPLOYED: Sun May 19 21:41:41 2024 NAMESPACE: default STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: CHART NAME: mariadb CHART VERSION: 18.0.6 APP VERSION: 11.3.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=mariadb

Services:

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

Administrator credentials:

 Username: root
 Password : $(kubectl get secret --namespace default 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 mariadb-client --rm --tty -i --restart='Never' --image  docker.io/bitnami/mariadb:11.3.2-debian-12-r5 --namespace default --command -- bash
 2. To connect to primary service (read/write):
     mysql -h 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 mariadb -o jsonpath="{.data.mariadb-root-password}" | base64 -d)
     helm upgrade --namespace default mariadb oci://registry-1.docker.io/bitnamicharts/mariadb --set auth.rootPassword=$ROOT_PASSWORD

WARNING: There are "resources" sections in the chart not set. Using "resourcesPreset" is not recommended for production. For production installations, please set the following values according to your workload needs:

 - primary.resources
 - secondary.resources

+info https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/