Kublr on BareMetal

Kublr on BareMetal

When you install Kublr on BareMetal, to store persistent data, the local file system host OS (hostPath)is used. You can override the storage location by using a Kublr custom specification.

Kublr components storage locations

Component Name Node Type Default Storage Path Owner UID Minimum Disk Size
ETCD master /mnt/master-pd 0 4G
Elasticsearch data node node /var/lib/kublr/elasticserach/data 1000 128G
Elasticsearch master node node /var/lib/kublr/elasticserach/master 1000 4G
Grafana node /var/lib/kublr/grafana  0 1G
MongoDB node /var/lib/kublr/mongodb 1001 8G
MySQL DB node /var/lib/kublr/mysql 999 8G
Prometheus node /var/lib/kublr/prometheus 0 25G
RabbitMQ node /var/lib/kublr/rabbitmq 999 3G
Component Name hostPath owner UID minimum size

Kublr components storage path overrides

Kublr controlplane

  1. /mnt/master-pd - ETCD storage on master node owner UID: 0, size: 10G

    spec:
      master:
        kublrAgentConfig:
          etcd_storage:
            path: /data/etcd
  2. /var/lib/mongodb-data - MongoDB data owner UID: 1001, size: 8G

    spec:
      controlPlane:
        values:
          app-mongodb:
            localStorage:
              enabled: true
              nodeName: node-1.kcp.local
              hostPath: /data/MongoDB

    Kublr Monitoring

  3. /var/lib/kublr/prometheus - Prometheus RAW DB owner UID: 0, size: 25G

    spec:
      features:
        monitoring:
          prometheus:
            nodeName: node-0.kcp.local
            persistence:
              hostPath: /data/prometheus
  4. /var/lib/kublr/grafana - Grafana storage owner UID: 0, size: 1G

   spec:
     features:
       monitoring:
         grafana:
           nodeName: node-1.kcp.local
           persistence:
             hostPath: /data/grafana

Kublr Logging

  1. /var/lib/kublr/elasticsearch/data - Elasticsearch data nodes owner UID: 1000, size: 128G
   spec:
     features:
       logging:
         values:
           elasticsearch:
             data:
               persistence:
                 hostPath: /data/elk-data
  1. /var/lib/kublr/elasticsearch/master - Elasticsearch master nodes data owner UID: 1000, size: 4G
   spec:
     features:
       logging:
         values:
           elasticsearch:
             master:
               persistence:
                 hostPath: /data/elk-master
  1. /var/lib/kublr/rabbitmq - RabbitMQ data dir owner UID: 999, size: 3G

yaml spec: features: logging: values: rabbitmq: persistentVolume: hostPath: /data/rabbitmq nodeName: node-0.kcp.local