APPUNTI: differenze tra le versioni
Vai alla navigazione
Vai alla ricerca
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
(Una versione intermedia di uno stesso utente non è mostrata) | |||
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 | |||
Riga 35: | 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 45: | 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 52: | 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 ~]#