goldpinger

by christianhuth

Helm chartv1.5.1App 3.11.5Verified publisher

Debugging tool for Kubernetes which tests and displays connectivity between nodes in the cluster.

About this chart

goldpinger

Debugging tool for Kubernetes which tests and displays connectivity between nodes in the cluster.

TL;DR;

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/goldpinger

Or install it from the OCI registry:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/goldpinger

Introduction

This chart bootstraps Goldpinger on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.19+

Installing the Chart

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

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/goldpinger

The chart is also published as an OCI artifact which can be installed like this:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/goldpinger

These commands deploy Goldpinger on the Kubernetes cluster in the default configuration. The Values section lists the values that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall the my-release deployment:

helm uninstall my-release

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

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for pod assignment
extraEnvlist[]additional environment variables to be added to the pods
fullnameOverridestring""String to fully override "goldpinger.fullname"
goldpinger.displayNodenamebooltrueDisplay nodename other than podname in UI
goldpinger.externalTargets.dns.targetsstring""A space delimited list of hosts to attempt dns resolve on
goldpinger.externalTargets.dns.timeoutstring"500ms"The timeout for a dns check on the provided dns-targets
goldpinger.externalTargets.http.targetsstring""A space delimited list of external targets (http://url or https://url) to attempt an HTTP{S} check on. A 200 HTTP code is considered successful.
goldpinger.externalTargets.http.timeoutstring"500ms"The timeout for a http check on the provided http-targets
goldpinger.externalTargets.tcp.targetsstring""A space delimited list of external targets (host:port or ip:port) to attempt a TCP check on
goldpinger.externalTargets.tcp.timeoutstring"500ms"The timeout for a tcp check on the provided tcp-targets
goldpinger.internalPeers.pingNumberint0Number of peers to ping. A value of 0 indicates all peers should be pinged
goldpinger.internalPeers.timeouts.checkstring"1000ms"The timeout for a check call to other goldpinger pods
goldpinger.internalPeers.timeouts.checkAllstring"5000ms"The timeout for a check-all call to other goldpinger pods
goldpinger.internalPeers.timeouts.pingstring"300ms"The timeout for a ping call to other goldpinger pods
goldpinger.ipVersionsstring"4"The space delimited list of IP versions to use. Possible values are 4 and 6
goldpinger.jitterFactorfloat0.05The amount of jitter to add while pinging clients
goldpinger.portint8080Port where Goldpinger will run
goldpinger.refreshIntervalint30If > 0, will create a thread and collect stats every n seconds
goldpinger.zapConfigstring"{\n \"level\": \"info\",\n \"encoding\": \"json\",\n \"outputPaths\": [\n \"stdout\"\n ],\n \"errorOutputPaths\": [\n \"stderr\"\n ],\n \"initialFields\": {\n },\n \"encoderConfig\": {\n \"messageKey\": \"message\",\n \"levelKey\": \"level\",\n \"levelEncoder\": \"lowercase\",\n \"timeKey\": \"ts\",\n \"timeEncoder\": \"ISO8601\",\n \"callerKey\": \"caller\",\n \"callerEncoder\": \"Short\"\n }\n}\n"
grafanaDashboard.enabledboolfalseEnable the creation of a Grafana Dashboard
grafanaDashboard.folderstring""folder assignment for dashboard
grafanaDashboard.grafanaCom.idint10949ID of the dashboard from the Grafana marketplace
grafanaDashboard.grafanaCom.revisionint1Revision of the dashboard from the Grafana marketplace
grafanaDashboard.instanceSelectorobject{}Selects Grafana instances for import
image.pullPolicystring"Always"image pull policy
image.registrystring"docker.io"image registory
image.repositorystring"bloomberg/goldpinger"image repository
image.tagstring"3.11.5"Overrides the image tag
imagePullSecretslist[]If defined, uses a Secret to pull an image from a private Docker registry or repository.
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
livenessProbe.failureThresholdint3Failure threshold for livenessProbe
livenessProbe.initialDelaySecondsint20Initial delay seconds for livenessProbe
livenessProbe.periodSecondsint5Period seconds for livenessProbe
livenessProbe.successThresholdint1Success threshold for livenessProbe
livenessProbe.timeoutSecondsint5Timeout seconds for livenessProbe
nameOverridestring""Provide a name in place of goldpinger
nodeSelectorobject{}Node labels for pod assignment
podAnnotationsobject{}Annotations to be added to pods
podSecurityContextobject{"fsGroup":2000,"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000,"seccompProfile":{"type":"RuntimeDefault"}}pod-level security context
prometheusRule.enabledboolfalseEnable a PrometheusRule
prometheusRule.ruleslist[{"alert":"goldpinger_nodes_unhealthy","annotations":{"description":"Goldpinger instance {{ \"{{ $labels.goldpinger_instance }}\" }} has been reporting unhealthy nodes for at least 5 minutes.\n","summary":"Instance {{ \"{{ $labels.instance }}\" }} down"},"expr":"sum(goldpinger_nodes_health_total{job=\"{{ template \"goldpinger.fullname\" . }}\", status=\"unhealthy\"})\nBY (instance, goldpinger_instance) > 0\n","for":"5m","labels":{"severity":"warning"}}]List of rules
rbac.clusterscopedbooltrueCreate clusterscoped resources
rbac.createbooltrueCreate RBAC resources
readinessProbe.failureThresholdint3Failure threshold for readinessProbe
readinessProbe.initialDelaySecondsint20Initial delay seconds for readinessProbe
readinessProbe.periodSecondsint5Period seconds for readinessProbe
readinessProbe.successThresholdint1Success threshold for readinessProbe
readinessProbe.timeoutSecondsint5Timeout seconds for readinessProbe
resourcesobject{"limits":{"memory":"80Mi"},"requests":{"cpu":"1m","memory":"40Mi"}}Resource limits and requests for the headwind pods.
revisionHistoryLimitint10The number of old ReplicaSets to retain
route.main.additionalRuleslist[]Additional custom rules that can be added to the route
route.main.annotationsobject{}Add annotations to the route
route.main.apiVersionstring"gateway.networking.k8s.io/v1"Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2
route.main.enabledboolfalseEnables or disables the route
route.main.filterslist[]Filters define the filters that are applied to requests that match this rule.
route.main.hostnameslist[]Hostnames to be matched
route.main.httpsRedirectboolfalseadds a filter for redirecting to https (HTTP 301 Moved Permanently). To redirect HTTP traffic to HTTPS, you need to have a Gateway with both HTTP and HTTPS listeners. Matches and filters do not take effect if enabled. Ref. https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/
route.main.kindstring"HTTPRoute"Set the route kind Valid options are GRPCRoute, HTTPRoute, TCPRoute, TLSRoute, UDPRoute
route.main.labelsobject{}Add labels to the route
route.main.matcheslistsee values.yamldefine conditions used for matching the rule against incoming HTTP requests.
route.main.parentRefslist[]Parent references (Gateway)
route.main.timeoutsobject{}defines the timeouts that can be configured for an HTTP request
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true}container-level security context
service.portint8080Kubernetes port where service is exposed
service.typestring"ClusterIP"Kubernetes service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
serviceMonitor.additionalLabelsobject{}Prometheus ServiceMonitor labels
serviceMonitor.enabledboolfalseEnable a Prometheus ServiceMonitor
serviceMonitor.intervalstring"30s"Prometheus ServiceMonitor interval
serviceMonitor.metricRelabelingslist[]Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
serviceMonitor.namespacestring""Prometheus ServiceMonitor namespace
serviceMonitor.relabelingslist[]Prometheus [RelabelConfigs] to apply to samples before scraping
serviceMonitor.scrapeTimeoutstring""Prometheus ServiceMonitor scrapeTimeout, cannot be longer than the scrape interval
serviceMonitor.selectorobject{}Prometheus ServiceMonitor selector
tolerationslist[]Toleration labels for pod assignment
updateStrategyobject{}Update strategy for the DaemonSet

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install my-release -f values.yaml christianhuth/goldpinger

Deploy goldpinger with OpenTenant

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