---
title: Charmhub | Deploy Sloth K8S using Charmhub - The Open Operator Collection
description: Deploy the latest version of Sloth K8S as a Kubernetes Operator on any
  cloud.
url: https://charmhub.io/sloth-k8s/configurations
---

# Sloth K8S

[Mateusz Kulewicz](https://charmhub.io/publisher/mmkay "View all packages from Mateusz Kulewicz")

* [Mateusz Kulewicz](https://charmhub.io/publisher/mmkay "View all packages from Mateusz Kulewicz")

Platform:

edge rev18-3-g0a6514c

```
juju deploy sloth-k8s --channel edge
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [slo-period](https://charmhub.io/sloth-k8s/configurations#slo-period)
* [slo-period-windows](https://charmhub.io/sloth-k8s/configurations#slo-period-windows)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* slo-period | string

  Default: 30d

  The default SLO period for calculations (e.g., "30d" for 30 days, "28d" for 28 days, "7d" for 7 days).
  This is used when no custom SLO period windows configuration is provided.

  Sloth uses this to generate alert windows based on Google's SRE Workbook recommendations.
  The built-in windows are optimized for 30d and 28d periods.

  **IMPORTANT**: If you use a period other than 30d or 28d, you MUST also provide
  slo-period-windows configuration. Otherwise, the charm will be in a blocked state.
* slo-period-windows | string

  Custom SLO period windows configuration in YAML format.

  This allows you to define custom alerting windows for SLO monitoring.
  When provided, this overrides the default period windows for the slo-period.

  **REQUIRED**: This configuration is REQUIRED when using a slo-period other than 30d or 28d,
  as Sloth only has built-in defaults for those two periods.

  The YAML must follow the Sloth AlertWindows spec (apiVersion: sloth.slok.dev/v1, kind: AlertWindows).

  Example for a 7-day window:
  apiVersion: sloth.slok.dev/v1
  kind: AlertWindows
  spec:
  sloPeriod: 7d
  page:
  quick:
  errorBudgetPercent: 8
  shortWindow: 5m
  longWindow: 1h
  slow:
  errorBudgetPercent: 12.5
  shortWindow: 30m
  longWindow: 6h
  ticket:
  quick:
  errorBudgetPercent: 20
  shortWindow: 2h
  longWindow: 1d
  slow:
  errorBudgetPercent: 42
  shortWindow: 6h
  longWindow: 3d

  See https://sloth.dev/usage/slo-period-windows/ for more information.
