clusterpirate

by CloudPirates

Helm chartv1.6.1App 1.1.0Apache-2.0Verified publisher

Client agent for the CloudPirates Managed Observability Platform to connect your Kubernetes cluster to our infrastructure

About this chart

ClusterPirate Helm Chart

⚠️ Important

This chart requires an access token. You must obtain a token from our Customer Portal before installing this chart. For complete installation instructions and setup guide, please refer to our Developer Portal.

A Helm chart for ClusterPirate - the client agent for CloudPirates Managed Observability Platform. This chart deploys the necessary components to connect your Kubernetes cluster to the CloudPirates managed observability service, enabling centralized monitoring, metrics collection, log aggregation, and cluster insights through our SaaS platform.

What is ClusterPirate?

ClusterPirate is a lightweight client agent that runs in your Kubernetes cluster and acts as the bridge between your infrastructure and the CloudPirates Managed Observability Platform. It provides:

  • Automated Cluster Discovery: Registers your cluster with the managed platform
  • Metrics Collection: Gathers resource usage, performance metrics, and cluster health data
  • Event Monitoring: Tracks Kubernetes events and system activities
  • Secure Data Transmission: Encrypts and securely transmits observability data to the platform
  • Local Caching: Uses Valkey for efficient data buffering and resilience

The collected data is processed and visualized through the CloudPirates web console, providing you with comprehensive insights into your cluster's health, performance, and resource utilization without the overhead of managing your own observability infrastructure.

Prerequisites

  • Kubernetes 1.24+
  • Helm 3.2.0+
  • Access token for CloudPirates API
  • PV provisioner support in the underlying infrastructure (if Valkey persistence is enabled)

Installing the Chart

To install the chart with the release name clusterpirate in the clusterpirate-system namespace:

kubectl create namespace clusterpirate-system
helm install clusterpirate --namespace clusterpirate-system oci://registry-1.docker.io/cloudpirates/clusterpirate

Or install directly from the local chart:

kubectl create namespace clusterpirate-system
helm install clusterpirate ./charts/clusterpirate --namespace clusterpirate-system

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

Uninstalling the Chart

To uninstall/delete the clusterpirate deployment:

helm uninstall clusterpirate --namespace clusterpirate-system

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

Security & Signature Verification

This Helm chart is cryptographically signed with Cosign to ensure authenticity and prevent tampering.

Public Key:

-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE5U+rM2d3hDjgP5T3cLShuuQIU9vR
Z4/G+Nug6q5vRa+C3qUA1wXjbaJFAfcIrv5VjmYAYOj13shnPpp3Zh4fnQ==
-----END PUBLIC KEY-----

To verify the helm chart before installation, copy the public key to the file cosign.pub and run cosign:

cosign verify --key cosign.pub registry-1.docker.io/cloudpirates/clusterpirate:<version>

Configuration

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

Global parameters

ParameterDescriptionDefault
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
imagePullSecretsDocker registry secret names as an array[{"name": "k7r-registry"}]

Deployment configuration

ParameterDescriptionDefault
deployment.image.registryClusterPirate image registryharbor.cloudpirates.io
deployment.image.repositoryClusterPirate image repositorykoperator-internal/services/clusterpirate
deployment.image.tagClusterPirate image taglatest
deployment.image.pullPolicyClusterPirate image pull policyAlways
deployment.resourcesResource limits and requests for ClusterPirate container{}
deployment.extraEnvVarsAdditional environment variables[]

Health probe configuration

ParameterDescriptionDefault
deployment.probes.livenessProbe.enabledEnable livenessProbe on ClusterPirate containerstrue
deployment.probes.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe30
deployment.probes.livenessProbe.periodSecondsPeriod seconds for livenessProbe10
deployment.probes.livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
deployment.probes.livenessProbe.failureThresholdFailure threshold for livenessProbe3
deployment.probes.livenessProbe.successThresholdSuccess threshold for livenessProbe1
deployment.probes.readinessProbe.enabledEnable readinessProbe on ClusterPirate containerstrue
deployment.probes.readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe5
deployment.probes.readinessProbe.periodSecondsPeriod seconds for readinessProbe5
deployment.probes.readinessProbe.timeoutSecondsTimeout seconds for readinessProbe3
deployment.probes.readinessProbe.failureThresholdFailure threshold for readinessProbe3
deployment.probes.readinessProbe.successThresholdSuccess threshold for readinessProbe1

ClusterPirate Application Configuration

ParameterDescriptionDefault
clusterPirate.logLevelApplication logging level (debug, info, warn, error, fatal)info
clusterPirate.healthPortHealth check server port3000
clusterPirate.metrics.enabledEnable/disable metrics collectiontrue
clusterPirate.metrics.updateIntervalSecondsInterval in seconds for metrics updates60
clusterPirate.metrics.cache.hostValkey server hostname or IP address""
clusterPirate.metrics.cache.portValkey server port6379
clusterPirate.metrics.cache.passwordValkey authentication password""
clusterPirate.metrics.cache.ttlTime-to-live for cached metrics in seconds86400
clusterPirate.monitoring.resourceEventsEnabledEnable monitoring of Kubernetes resourcestrue
clusterPirate.monitoring.systemEventsEnabledEnable monitoring of Kubernetes system eventstrue

CloudPirates API Configuration

ParameterDescriptionDefault
cloudpiratesApi.registerEndpointAPI endpoint for cluster registrationhttps://api.cloudpirates.io/v1/clusterpirate/register

Authentication Configuration

ParameterDescriptionDefault
auth.accessTokenAccess token for CloudPirates API""
auth.existingSecretName of existing secret containing the access token""
auth.existingSecretAccessTokenKeyKey within the existing secret that contains the access token"accessToken"

RBAC Configuration

ParameterDescriptionDefault
rbac.createWhether to create RBAC resources (ClusterRole and ClusterRoleBinding)true

Service Account Configuration

ParameterDescriptionDefault
serviceAccount.createWhether to create a service accounttrue
serviceAccount.nameName of the service account to create or use""

Valkey Configuration (Dependency)

ParameterDescriptionDefault
valkey.enabledEnable/disable Valkey installation as a dependencytrue
valkey.auth.enabledEnable/disable password authentication for Valkeytrue
valkey.auth.passwordValkey password""
valkey.auth.existingSecretName of existing secret containing the Valkey password""
valkey.auth.existingSecretPasswordKeyKey within the existing secret that contains the password"password"

Examples

Basic Deployment

Deploy ClusterPirate with default configuration (requires access token):

kubectl create namespace clusterpirate-system
helm install clusterpirate ./charts/clusterpirate \
  --namespace clusterpirate-system \
  --set auth.accessToken="your-access-token-here"

Production Setup with External Valkey

# values-production.yaml
clusterPirate:
  logLevel: warn
  metrics:
    updateIntervalSeconds: 30
    cache:
      host: "external-valkey.example.com"
      port: 6379
      password: "secure-valkey-password"
      ttl: 43200 # 12 hours

deployment:
  resources:
    requests:
      memory: "200Mi"
      cpu: "50m"
    limits:
      memory: "500Mi"

auth:
  existingSecret: "clusterpirate-credentials"
  existingSecretAccessTokenKey: "accessToken"

valkey:
  enabled: false

Deploy with production values:

kubectl create namespace clusterpirate-system
helm install clusterpirate ./charts/clusterpirate \
  --namespace clusterpirate-system \
  -f values-production.yaml

Using Existing Secrets

# values-external-secrets.yaml
auth:
  existingSecret: "clusterpirate-auth"
  existingSecretAccessTokenKey: "accessToken"

valkey:
  auth:
    existingSecret: "valkey-credentials"
    existingSecretPasswordKey: "password"

Create the secrets first:

kubectl create namespace clusterpirate-system
kubectl create secret generic clusterpirate-auth \
  --namespace clusterpirate-system \
  --from-literal=accessToken=your-api-access-token

kubectl create secret generic valkey-credentials \
  --namespace clusterpirate-system \
  --from-literal=password=your-valkey-password

Development Setup

# values-development.yaml
clusterPirate:
  logLevel: debug
  metrics:
    updateIntervalSeconds: 120
    cache:
      ttl: 3600 # 1 hour

deployment:
  image:
    tag: "latest"
    pullPolicy: Always

valkey:
  persistence:
    enabled: false # Use emptyDir for development

Access ClusterPirate

Logs

View ClusterPirate logs:

kubectl logs -f deployment/clusterpirate --namespace clusterpirate-system

Valkey Access

If using the Valkey dependency, access Valkey directly:

kubectl port-forward service/clusterpirate-valkey --namespace clusterpirate-system 6379:6379

Get the auto-generated Valkey password:

kubectl get secret clusterpirate-valkey --namespace clusterpirate-system -o jsonpath="{.data.password}" | base64 --decode

Troubleshooting

Common Issues

  1. Pod fails to start with authentication errors

    • Ensure the access token is correctly configured
    • Verify the CloudPirates API endpoint is accessible
    • Check the secret name and key if using existing secrets
  2. Cannot connect to Valkey

Deploy clusterpirate with OpenTenant

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