uptime-bot

by VEriK Systems

Helm chartv1.1.12App 1.0.0

Chart for health check VEriK services

About this chart

VEriK Service Helm Chart

This chart bootstraps a VEriK cloud application deployment on a Kubernetes cluster using the Helm package manager.

TL;DR

$ helm repo add verik-charts https://charts.veriksystems.com
$ helm install my-release verik-charts/verik-service

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.1.0
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release verik-charts/verik-service

The command deploys Redmine on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global Parameters

NameDescriptionValue
commonLabels.app.kubernetes.io/namecommon Kubernetes app labelundefined
commonLabels.app.kubernetes.io/componentcommon Kubernetes app componentundefined
labels.appcommon app labeluptime-bot
labels.rolecommon role labelagent
labels.releaseallow prometheus scrape metricsprometheus
nameOverrideString to partially override common.names.fullname""

Common Parameters

NameDescriptionValue
image.pullPolicypull image policyIfNotPresent
image.registryimage registryregistry.hub.docker.com
image.repositoryimage repositoryverik01/uptime-bot
image.tagimage tagv1.11.1
replicasNumber of Metrics Server replicas to deploy1
extraEnvVars[0].nameExtra environments nameGET_HOSTS_FROM
extraEnvVars[0].valueExtra environments valuedns
configurationsconfigmap configuration data[]

Pod configuration Parameters

NameDescriptionValue
podAnnotationsAdditional pod annotations for MariaDB Galera pods{}
priorityClassNamePriority class for pod schedulingsystem-cluster-critical
podAffinityPresetPod affinity preset""
podAntiAffinityPresetPod anti-affinity presetsoft
podDisruptionBudget.enabledPod disruption budget enabledfalse
podDisruptionBudget.minAvailablePod disruption budget min available pod1
podDisruptionBudget.maxUnavailablePod disruption budget max unavailable pod3

Node configuration Parameters

NameDescriptionValue
nodeAffinityPreset.typeNode affinity preset type""
nodeAffinityPreset.keyNode affinity preset key""
nodeAffinityPreset.valuesNode affinity preset values[]
affinityAffinity for pod assignment. Evaluated as a template.{}
nodeSelector.alpha.eksctl.io/nodegroup-namenode group name for node selectorundefined
tolerationsTolerations for pod assignment. Evaluated as a template.[]

Storage configuration Parameters

NameDescriptionValue
extraVolumeMounts[0].nameextra volume mounts nameuptime-bot
extraVolumeMounts[0].mountPathextra volume mounts path/app/data
extraVolumes[0].nameextra volume nameextra-data
extraVolumes[0].emptyDirextra volume emptyDir definition{}
extraArgsextra arguments pass to service container[]

Service configuration Parameters

NameDescriptionValue
containerPortContainer port3001
service.typeKubernetes service typeClusterIP
service.labelsKubernetes service labels{}
service.ports[0].nameKubernetes service for http porthttp
service.ports[0].portKubernetes service port80
service.ports[0].targetPortKubernetes service target container port3001
service.ports[1].nameKubernetes service for metric portmetrics
service.ports[1].portKubernetes service port9913
service.ports[1].targetPortKubernetes service target container port3001
service.ports[1].protocolKubernetes service protocol is TCPTCP
service.ports[2].nameKubernetes service for https porthttps
service.ports[2].portKubernetes service port443
service.ports[2].targetPortKubernetes service target container port3001

Ingress configuration Parameters

NameDescriptionValue
ingress.enabledKubernetes ingress enabledtrue
ingress.annotations.kubernetes.io/ingress.classKubernetes ingress annotations kubernetes.io/ingress.class nginxundefined
ingress.labelsKubernetes ingress labels{}
ingress.portKubernetes ingress port80
ingress.pathKubernetes ingress path/
ingress.pathTypeKubernetes ingress pathTypePrefix
ingress.tlsKubernetes ingress tls[]
ingress.hostshosts list["uptime.veriksystems.com"]

Resource quota configuraiton Parameters

NameDescriptionValue
resources.limits.cpuKubernetes resources limit cpu configure200m
resources.limits.memoryKubernetes resources limit memory configure256Mi
resources.requests.cpuKubernetes resources requests cpu configure100m
resources.requests.memoryKubernetes resources requests memory configure128Mi

Metric configuraiton Parameters

NameDescriptionValue
metrics.enabledEnable the export of Prometheus metricstrue
metrics.serviceMonitor.enabledif true, creates a Prometheus Operator ServiceMonitor (also requires metrics.enabled to be true)true
metrics.serviceMonitor.basicAuth.enabledenable basic-auth for metrics endpointtrue
metrics.serviceMonitor.basicAuth.usernameusername""
metrics.serviceMonitor.basicAuth.passwordpassword""
metrics.serviceMonitor.namespaceNamespace in which Prometheus is running""
metrics.serviceMonitor.intervalInterval at which metrics should be scraped.""
metrics.serviceMonitor.scrapeTimeoutTimeout after which the scrape is ended""
metrics.serviceMonitor.selector.appPrometheus instance selector labelsuptime-bot
metrics.serviceMonitor.selector.rolePrometheus instance selector labelsagent
metrics.serviceMonitor.selector.releasePrometheus instance selector labelsprometheus
metrics.serviceMonitor.metricRelabelingsSpecify Metric Relabellings to add to the scrape endpoint[]
metrics.serviceMonitor.honorLabelsLabels to honor to add to the scrape endpointfalse
metrics.serviceMonitor.additionalLabelsAdditional custom labels for the ServiceMonitor{}
metrics.serviceMonitor.jobLabelThe name of the label on the target service to use as the job name in prometheus.""
metrics.serviceMonitor.portservice monitor port mapping with Kubernetes service endpoint portmetrics

Resource Healthz configuraiton Parameters

NameDescriptionValue
healthz.startupProbeKubernetes container startupProbe/status
healthz.livenessProbeKubernetes container livenessProbe/status
healthz.readinessProbeKubernetes container readinessProbe/status

Persistence Parameters

NameDescriptionValue
persistence.enabledEnable persistence using Persistent Volume Claimstrue
persistence.storageClassPersistent Volume storage class""
persistence.accessModesPersistent Volume access modes[]
persistence.accessMode

Deploy uptime-bot with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has uptime-bot 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 chartuptime-bot is pinned at v1.1.12 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