samyerkes / healthchecksio-operator

A Kubernetes operator for Healthchecks.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

healthchecksio-operator

A Kubernetes operator for Healthchecks.io, implemented in go using kubebuilder.

Status

GitHub GitHub GitHub go.mod Go version

Supported resources

  • Check

Example

---
apiVersion: monitoring.healthchecks.io/v1alpha1
kind: Check
metadata:
  name: check-sample
spec:
  schedule: "*/10 * * * *"
  timezone: "Europe/Stockholm"
  gracePeriod: 120
  channels:
    - "email"
    - "webhook"
  tags:
    - healthchecksio-operator
    - prod

Configuration

Flag Environment variable Type Required Description
- HEALTHCHECKSIO_API_KEY string true The healthchecks.io API Key.
metrics-addr OPERATOR_METRICS_ADDR string false The address the metric endpoint binds to.
enable-leader-election OPERATOR_ENABLE_LEADER_ELECTION bool false Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.
development OPERATOR_DEVELOPMENT bool false Run the operator in development mode.
log-level OPERATOR_LOG_LEVEL string false The log level used by the operator.
name-prefix OPERATOR_NAME_PREFIX string false Prefix used to create unique resources across clusters.
reconcile-interval OPERATOR_RECONCILE_INTERVAL duration false The interval for the reconcile loop.

Development

Pre-requisites

Getting started

export HEALTHCHECKSIO_API_KEY='<API_KEY>'
export OPERATOR_DEVELOPMENT='true'
make install
make run

Running tests

make test

About

A Kubernetes operator for Healthchecks.io

License:Apache License 2.0


Languages

Language:Go 94.4%Language:Makefile 4.0%Language:Dockerfile 1.6%