...
Deploying Monitoring from Cluster Explorer
Open Cluster Explorer:
...
Open the marketplace:
...
Configure the monitoring application. The deployment is done with Helm 3. You can use the form to configure the installation, but also directly from the YAML file.
...
Select the type of cluster:
...
Selecting the retention policy for Prometheus:
...
Choose whether to persist the data. To set up persistence you need to create and configure several additional resources depending on the cloud provider. The following steps are necessary if you are in an on premise environment without a disk provider.
...
Prometheus is deployed using a StatefulSet, therefore PVCs are created using a PVC template defined in the StatefulSet itself. When there is no disk provider, the PVs have to be created by hand with tags that allow to define selectors so that the dynamically created PVCs can use the correct PVs.
...
Ejemplo de Example PV:
Code Block |
---|
apiVersion: v1 kind: PersistentVolume metadata: name: prometheus-1 namespace: cattle-monitoring-system labels: minsait/storage: prometheus spec: capacity: storage: 100Gi nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: minsait/node operator: In values: - osp1 accessModes: - ReadWriteOnce hostPath: path: /Data/onesaitplatform/prometheus |
...