Installation

LPAR2RRD deply in Kubernetes and OpenShift

You can run LPAR2RRD easily with docker image on Kubernetes / OpenShift.
No missing modules, library version conflicts or dependency hell.
It's based on the latest official Alpine Linux with all necessary dependencies installed.

Volumes

It is necessary to create 2 volumes, for configuration and for data.
We recommend 2 GB for configuration and at least 100 GB for data as persistentVolumeClaim with ClaimName lpar2rrd-conf and lpar2rrd-data.
These volumes are then mounted to /home/lpar2rrd/lpar2rrd/etc and /home/lpar2rrd/lpar2rrd/data.

Deployment pattern lpar2rrd:
apiVersion: v1
kind: Pod
metadata:
  name: lpar2rrd
  namespace: <your_namespace>
  labels:
    app: lpar2rrd
spec:
  securityContext:
    fsGroup: 102
  containers:
  - name: lpar2rrd
    image: xorux/lpar2rrd
    volumeMounts:
    - mountPath: /home/lpar2rrd/lpar2rrd/data
      name: lpar2rrd-data
    - mountPath: /home/lpar2rrd/lpar2rrd/etc
      name: lpar2rrd-conf
    ports:
    - containerPort: 80
  volumes:
    - name: lpar2rrd-data
      persistentVolumeClaim:
        claimName: lpar2rrd-data
    - name: lpar2rrd-conf
      persistentVolumeClaim:
        claimName: lpar2rrd-conf
After deployment go to the web UI, use admin/admin as username/password

You can connect via SSH on port 22 (exposed), username lpar2rrd, password xorux4you - please change it ASAP.

Troubleshooting

The first step in debugging a Pod is taking a look at it. Check the current state of the Pod and recent events with the following command:
$ kubectl describe pods lpar2rrd (for Kubernetes)
$ oc describe pods lpar2rrd (for OpenShift)
General Kubernetes debug