Installation

STOR2RRD deploy in Kubernetes and OpenShift

You can run STOR2RRD 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 stor2rrd-conf and stor2rrd-data.
These volumes will be mounted on /home/stor2rrd/stor2rrd/etc and /home/stor2rrd/stor2rrd/data.
Change TIMEZONE as is needed

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

You can connect via SSH on port 22 (exposed), username stor2rrd, 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 stor2rrd (for Kubernetes)
$ oc describe pods stor2rrd (for OpenShift)
General Kubernetes debug