APPUNTI: differenze tra le versioni
		
		
		
		Vai alla navigazione
		Vai alla ricerca
		
|  (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...") | Nessun oggetto della modifica | ||
| (2 versioni intermedie di uno stesso utente non sono mostrate) | |||
| Riga 1: | Riga 1: | ||
| LAST DEPLOYED: Sun May 19 22:09:47 2024 | |||
| LAST DEPLOYED: Sun May 19  | |||
| NAMESPACE: default | NAMESPACE: default | ||
| STATUS: deployed | STATUS: deployed | ||
| Riga 15: | Riga 13: | ||
| Tip: | Tip: | ||
|    Watch the deployment status using the command: kubectl get pods -w --namespace default -l app.kubernetes.io/instance= |    Watch the deployment status using the command: kubectl get pods -w --namespace default -l app.kubernetes.io/instance=mariadb01 | ||
| Services: | Services: | ||
|    echo Primary:  |    echo Primary: mariadb01.default.svc.cluster.local:3306 | ||
| Administrator credentials: | Administrator credentials: | ||
|    Username: root |    Username: root | ||
|    Password : $(kubectl get secret --namespace default  |    Password : $(kubectl get secret --namespace default mariadb01 -o jsonpath="{.data.mariadb-root-password}" | base64 -d) | ||
| GfovAkjiPm | |||
| To connect to your database: | To connect to your database: | ||
| Riga 30: | Riga 32: | ||
|    1. Run a pod that you can use as a client: |    1. Run a pod that you can use as a client: | ||
|        kubectl run  |        kubectl run mariadb01-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): |    2. To connect to primary service (read/write): | ||
|        mysql -h  |        mysql -h mariadb01.default.svc.cluster.local -uroot -p my_database | ||
| To upgrade this helm chart: | To upgrade this helm chart: | ||
| Riga 40: | Riga 42: | ||
|    1. Obtain the password as described on the 'Administrator credentials' section and set the 'auth.rootPassword' parameter as shown below: |    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  |        ROOT_PASSWORD=$(kubectl get secret --namespace default mariadb01 -o jsonpath="{.data.mariadb-root-password}" | base64 -d) | ||
|        helm upgrade --namespace default  |        helm upgrade --namespace default mariadb01 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: | 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: | ||
| Riga 47: | Riga 49: | ||
|    - secondary.resources |    - secondary.resources | ||
| +info https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | +info https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | ||
| [root@kuber01 ~]# | |||
Versione attuale delle 21:21, 19 mag 2024
LAST DEPLOYED: Sun May 19 22:09:47 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=mariadb01
Services:
echo Primary: mariadb01.default.svc.cluster.local:3306
Administrator credentials:
 Username: root
 Password : $(kubectl get secret --namespace default mariadb01 -o jsonpath="{.data.mariadb-root-password}" | base64 -d)
GfovAkjiPm
To connect to your database:
1. Run a pod that you can use as a client:
kubectl run mariadb01-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 mariadb01.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 mariadb01 -o jsonpath="{.data.mariadb-root-password}" | base64 -d)
     helm upgrade --namespace default mariadb01 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/ [root@kuber01 ~]#