deadmanssnitch-operator

module
v0.0.0-...-be237b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2020 License: Apache-2.0

README

deadmanssnitch-operator

Operator to manage deadmanssnitch configs for Openshift Dedicated

Metrics

metricDeadMansSnitchHeartbeat: Every 5 minutes, makes a request to the Dead Man's Switch API using the API key and updates the gauge to 1 when the response code is between 200-299.

Alerts

  • DeadMansSnitchAPIUnavailable - Unable to communicate with Dead Man's Snitch API for 15 minutes.

Usage

  • Create an account on https://deadmanssnitch.com/
  • Choose a plan that allows enhanced snitch intervals(Private eye or above)
  • Create an API key
  • Create the following secret which is required for deadmanssnitch-operator to create snitches
apiVersion: v1
data:
hive-cluster-tag: <Tag for snitches>
deadmanssnitch-api-key: <deadmanssnitch API key here>
kind: Secret
metadata:
name: deadmanssnitch-api-key
namespace: deadmanssnitch-operator
type: Opaque
  • Build a docker image and replace REPLACE_IMAGE operator.yaml field with that image
  • Deploy using oc apply -f deploy/

Directories

Path Synopsis
cmd
pkg
dmsclient/mock
Package mock_dmsclient is a generated GoMock package.
Package mock_dmsclient is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL