Install MySQL¶
Because MySQL belongs to the application layer of DCE 5.0, a DCE environment needs to be prepared first.
Follow the steps below to install MySQL.
Install mysql-operator¶
-
On the left navigation bar, click
Container Management
->Cluster List
. -
Select the cluster where MySQL is to be installed, and click the cluster name.
-
In the left navigation bar, click
Helm Application
->Helm chart
, enterMySQL
in the search box, press the Enter key, and click the MySQL tile card. -
After selecting the appropriate version, click the
Install
button. You can also follow the text prompts in the black area to install from the command line. -
Enter an appropriate name, select the namespace and version, and click
OK
. You can also configure YAML at the bottom to install. -
The system returns to the
Helm application
list, and the screen prompts that the creation is successful. After refreshing the page, the newly created application is at the first place.
Install mcamel-mysql¶
-
Configure the repository.
-
Check the version.
-
Install and upgrade.
helm upgrade --install mcamel-mysql --create-namespace -n mcamel-system --cleanup-on-fail \ --set global.mcamel.imageTag=v0.2.5 \ --set global.imageRegistry=release.daocloud.io\ mcamel-release/mcamel-mysql\ --version 0.2.5
Parameter Description:
--set ui.image.tag: Specify the front-end image version --set ghippo.createCrd: Register ghippo routing, enabled by default --set insight.serviceMonitor.enabled: Enable monitoring, enabled by default --set insight.grafanaDashboard.enabled: Enable the monitoring panel, which is enabled by default # global parameters --set global.mcamel.imageTag: mcamel-mysql image version --set global.imageRegistry: container registry address
uninstall¶
When uninstalling, first uninstall mcamel-mysql, and then delete mysql-operator to release related resources.
Uninstall mcamel-mysql¶
remove mysql-operator¶
-
In the Helm application list, click
⋮
on the far right, and selectDelete
from the pop-up menu. -
Enter the name to be deleted in the pop-up window, and click
Delete
after confirming that it is correct.
Installation parameter description¶
key | type | default | description |
---|---|---|---|
apiServer.affinity | object | {} | |
apiServer.image.pullPolicy | string | "IfNotPresent" | |
apiServer.image.registry | string | "release.daocloud.io" | |
apiServer.image.repository | string | "mcamel/mcamel-mysql-apiserver" | |
apiServer.image.tag | string | "v0.0.1" | |
apiServer.imagePullSecrets | list | [] | |
apiServer.livenessProbe.enabled | bool | true | |
apiServer.livenessProbe.failureThreshold | int | 3 | |
apiServer.livenessProbe.initialDelaySeconds | int | 30 | |
apiServer.livenessProbe.periodSeconds | int | 30 | |
apiServer.livenessProbe.scheme | string | "HTTP" | |
apiServer.livenessProbe.successThreshold | int | 1 | |
apiServer.livenessProbe.timeoutSeconds | int | 5 | |
apiServer.nodeSelector | object | {} | |
apiServer.podAnnotations | object | {} | |
apiServer. podSecurityContext | object | {} | |
apiServer.readinessProbe.enabled | bool | true | |
apiServer.readinessProbe.failureThreshold | int | 3 | |
apiServer.readinessProbe.initialDelaySeconds | int | 30 | |
apiServer.readinessProbe.periodSeconds | int | 30 | |
apiServer.readinessProbe.scheme | string | "HTTP" | |
apiServer.readinessProbe.successThreshold | int | 1 | |
apiServer.readinessProbe.timeoutSeconds | int | 5 | |
apiServer.replicaCount | int | 1 | |
apiServer.resources | object | {} | |
apiServer.securityContext | object | {} | |
apiServer.service.grpcPort | int | 8090 | |
apiServer.service.grpcProtocol | string | "TCP" | |
apiServer.service.grpcTargetPort | int | 8090 | |
apiServer.service.httpPort | int | 8080 | |
apiServer.service.httpProtocol | string | "TCP" | |
apiServer.service.httpTargetPort | int | 8080 | |
apiServer.service.type | string | "ClusterIP" | |
apiServer. tolerations | list | [] | |
ghippo.createCrd | bool | false | |
ghippo.version | string | "v0.1.0" | |
global.imagePullSecrets | list | [] | |
global.imageRegistry | string | "" | |
global.mcamel.imageTag | string | "" | |
insight.grafanaDashboard.enabled | bool | false | |
insight.grafanaDashboard.metadataLabels | string | "insight" | |
insight.serviceMonitor.enabled | bool | false | |
insight.serviceMonitor.metadataLabels | string | "insight" | |
insight.serviceMonitor.name | string | "mcamel-mysql" | |
insight.serviceMonitor.selectorMatchLabels | string | "mysql" | |
ui.affinity | object | {} | |
ui.enabled | bool | true | |
ui.image.pullPolicy | string | "IfNotPresent" | |
ui.image.registry | string | "release.daocloud.io" | |
ui.image.repository | string | "mcamel/mcamel-mysql-ui" | |
ui.image.tag | string | "v0.1.1" | |
ui.imagePullSecrets | list | [] | |
ui.nodeSelector | object | {} | |
ui.podAnnotations | object | {} | |
ui.podLabels | object | {} | |
ui.replicaCount | int | 1 | |
ui.resources | object | {} | |
ui.service.port | int | 80 | |
ui.service.type | string | "ClusterIP" | |
ui.tolerations | list | [] |