Skip to the content.

Configuring O-Neko

O-Neko can be configured by providing properties in an application.yml file. The path to application.yaml is configurable:

Alternatively all properties may be configured using UPPER-CASE environment variables (e.g O_NEKO.ACTIVITY.CLEANUP.MAX_AGE_HOURS).

O-Neko Specific Defaults

You may override the following default properties if necessary.

o-neko:
  activity:
    cleanup:
      maxAgeHours: 720
      schedulerIntervalMillis: 3600000
  deployments:
    lifetime:
      endOfDay:
        hour: 23
        minute: 59
        onNextDay: false
      lastDayOfTheWeek: friday
    logs:
      externalLogUrlTemplate: ""

Deployment Lifetime

Any project/version in O-Neko has a configurable deployment lifetime. This lifetime tells O-Neko when to stop a deployment. The settings until tonight and until weekend point to a specific time. To be a bit more flexible you can configure this point in time with o-neko.deployments.lifetime.endOfDay. By default, it points to:

By setting o-neko.deployments.lifetime.endOfDay.onNextDay to true, o-neko.deployments.lifetime.endOfDay.hour to 3, and o-neko.deployments.lifetime.lastDayOfTheWeek to saturday it will point to:

As you can see, until tonight always points to the current day (+1 if onNextDay is set to true) , while until weekend points to the configurable last day of the week (+1 if onNextDay is set to true).

Note: Deployments will stop on the next possible expiration date. So if you start a deployment shortly after the until tonight expiration date, it will be stopped on the next day.

Add external logging system URL

You can configure O-Neko to display a link to your external logging system (e.g. Grafana Loki, Google Cloud Logging, Elasticsearch etc.). To do this, O-Neko needs a URL template to your logging application. That template can include the variables pod, container and namespace, which will be replaced by a project version’s values.

A simple example for that option is:

o-neko:
    logs:
      externalLogUrlTemplate: "https://monitoring.myapplication.com/logs?pod=&container=&namespace="

If you do not configure an external logging system, no link will be shown. The built-in container log viewer will still be available.