kubesense

by joaquinito2051

Helm chartv1.0.0App 1.0.0

Kubesense Helm chart for APM, Logs, and Infrastructure Monitoring on Kubernetes

About this chart

Kubesense Helm Chart

Kubesense is a Kubernetes observability platform providing APM, distributed tracing, log aggregation, and infrastructure monitoring.

Prerequisites

  • Kubernetes 1.21+
  • Helm 3.0+
  • MySQL or PostgreSQL (external)
  • ClickHouse (external)
  • VictoriaMetrics (optional, external)

Installation

helm install kubesense ./kubesense \
  --set secrets.jwtSecret=<your-jwt-secret> \
  --set config.database.host=<mysql-host> \
  --set config.database.source=<db-name> \
  --set config.database.username=<db-user> \
  --set secrets.databasePassword=<db-password> \
  --set config.tracesStore.host=<clickhouse-host> \
  --set secrets.tracesStorePassword=<clickhouse-password> \
  --set config.metricsStore.url=http://<victoria-metrics-host>:8428

Configuration

The following table lists the configurable parameters and their default values.

ParameterDescriptionDefault
replicaCountNumber of replicas1
image.repositoryImage repositoryquay.io/guruprasad_kubesense/kubesense-api
image.tagImage tag1.0.0
image.pullPolicyImage pull policyIfNotPresent
service.typeKubernetes service typeClusterIP
service.portService port3000
config.portApplication port3000
config.apiRateLimitAPI rate limit per minute600
config.database.driverPrimary DB driver (mysql or postgres)mysql
config.database.hostPrimary DB host""
config.database.portPrimary DB port3306
config.database.sourcePrimary DB name""
config.database.usernamePrimary DB username""
config.tracesStore.hostClickHouse host""
config.tracesStore.portClickHouse port9000
config.metricsStore.enabledEnable VictoriaMetricstrue
config.metricsStore.urlVictoriaMetrics URL""
config.logger.levelLog levelinfo
config.alertmanager.enabledEnable Alertmanager integrationfalse
secrets.jwtSecretJWT signing secret""
secrets.databasePasswordPrimary DB password""
secrets.tracesStorePasswordClickHouse password""
resources.limits.cpuCPU limit500m
resources.limits.memoryMemory limit512Mi
resources.requests.cpuCPU request100m
resources.requests.memoryMemory request256Mi

Security

  • Runs as non-root user (UID 1001), compatible with OpenShift's restricted SCC
  • allowPrivilegeEscalation: false
  • All capabilities dropped
  • Sensitive values stored in a Kubernetes Secret

Health Checks

Liveness and readiness probes are configured on GET /api/health.

Uninstalling

helm uninstall kubesense

Deploy kubesense with OpenTenant

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