ingressmonitorcontroller

by evilgn0me

Helm chartv0.0.5App 0.0.5

IngressMonitorController Operator chart that runs on kubernetes

About this chart

IngressMonitorController Helm Chart

Helm chart for IngressMonitorController — a Kubernetes operator that watches resources and creates uptime monitors in external monitoring providers (StatusCake, UptimeRobot, Pingdom, and others).

Source code: github.com/evilgn0me/IngressMonitorController

Forked from stakater/IngressMonitorController, licensed under Apache 2.0.

Installation

helm repo add evilgn0me https://evilgn0me.github.io/helm-charts

helm repo update

helm install ingress-monitor-controller evilgn0me/ingressmonitorcontroller \
  --namespace tools \
  --create-namespace

Configuration

The controller reads its provider configuration from a Kubernetes secret named imc-config (configurable via configSecretName). The secret must contain a config.yaml key.

Example config.yaml:

providers:
  - name: StatusCake
    apiKey: <your-api-key>
    apiURL: https://api.statuscake.com/v1/
    alertContacts: "<contact-group-id>"
enableMonitorDeletion: true
monitorNameTemplate: "{{.Name}}-{{.Namespace}}"

Create the secret before installing the chart:

kubectl create secret generic imc-config \
  --namespace tools \
  --from-file=config.yaml=./config.yaml

Chart Values

KeyDefaultDescription
global.labels{}Labels added to all components
replicaCount1Number of controller replicas
image.repositoryghcr.io/evilgn0me/ingressmonitorcontrollerImage repository
image.tagv0.0.4Image tag
image.pullPolicyIfNotPresentImage pull policy
imagePullSecrets[]List of secrets used to pull images
nameOverride""Partial override for the fullname template
fullnameOverride""Full override for the fullname template
watchNamespaces""Comma-separated namespaces to watch; empty watches all
maxConcurrentReconciles1Number of concurrent reconcile workers
configSecretName"imc-config"Name of the secret containing provider configuration
rbac.createtrueCreate RBAC resources
rbac.allowProxyRoletrueCreate RBAC for metrics proxy
rbac.allowMetricsReaderRoletrueCreate RBAC for metrics reader
rbac.allowLeaderElectionRoletrueCreate RBAC for leader election
rbac.secretViewerRoletrueCreate RBAC to read the imc-config secret
serviceAccount.createtrueCreate a ServiceAccount
serviceAccount.name""ServiceAccount name; auto-generated if empty
serviceAccount.labels{}Additional labels on the ServiceAccount
serviceAccount.annotations{}Additional annotations on the ServiceAccount
serviceMonitor.enabledfalseCreate a Prometheus ServiceMonitor
podAnnotations{}Additional annotations on the Pod
podLabels{}Additional labels on the Pod
resources{}CPU/memory requests and limits
securityContext{}Container security context
podSecurityContext{}Pod security context
nodeSelector{}Node selector
tolerations[]Tolerations
affinity{}Affinity rules

Deploy ingressmonitorcontroller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ingressmonitorcontroller on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartingressmonitorcontroller is pinned at v0.0.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply