clusterpirate
by CloudPirates
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
| Parameter | Description | Default |
|---|---|---|
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
imagePullSecrets | Docker registry secret names as an array | [{"name": "k7r-registry"}] |
Deployment configuration
| Parameter | Description | Default |
|---|---|---|
deployment.image.registry | ClusterPirate image registry | harbor.cloudpirates.io |
deployment.image.repository | ClusterPirate image repository | koperator-internal/services/clusterpirate |
deployment.image.tag | ClusterPirate image tag | latest |
deployment.image.pullPolicy | ClusterPirate image pull policy | Always |
deployment.resources | Resource limits and requests for ClusterPirate container | {} |
deployment.extraEnvVars | Additional environment variables | [] |
Health probe configuration
| Parameter | Description | Default |
|---|---|---|
deployment.probes.livenessProbe.enabled | Enable livenessProbe on ClusterPirate containers | true |
deployment.probes.livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 30 |
deployment.probes.livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
deployment.probes.livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
deployment.probes.livenessProbe.failureThreshold | Failure threshold for livenessProbe | 3 |
deployment.probes.livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
deployment.probes.readinessProbe.enabled | Enable readinessProbe on ClusterPirate containers | true |
deployment.probes.readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 5 |
deployment.probes.readinessProbe.periodSeconds | Period seconds for readinessProbe | 5 |
deployment.probes.readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 3 |
deployment.probes.readinessProbe.failureThreshold | Failure threshold for readinessProbe | 3 |
deployment.probes.readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
ClusterPirate Application Configuration
| Parameter | Description | Default |
|---|---|---|
clusterPirate.logLevel | Application logging level (debug, info, warn, error, fatal) | info |
clusterPirate.healthPort | Health check server port | 3000 |
clusterPirate.metrics.enabled | Enable/disable metrics collection | true |
clusterPirate.metrics.updateIntervalSeconds | Interval in seconds for metrics updates | 60 |
clusterPirate.metrics.cache.host | Valkey server hostname or IP address | "" |
clusterPirate.metrics.cache.port | Valkey server port | 6379 |
clusterPirate.metrics.cache.password | Valkey authentication password | "" |
clusterPirate.metrics.cache.ttl | Time-to-live for cached metrics in seconds | 86400 |
clusterPirate.monitoring.resourceEventsEnabled | Enable monitoring of Kubernetes resources | true |
clusterPirate.monitoring.systemEventsEnabled | Enable monitoring of Kubernetes system events | true |
CloudPirates API Configuration
| Parameter | Description | Default |
|---|---|---|
cloudpiratesApi.registerEndpoint | API endpoint for cluster registration | https://api.cloudpirates.io/v1/clusterpirate/register |
Authentication Configuration
| Parameter | Description | Default |
|---|---|---|
auth.accessToken | Access token for CloudPirates API | "" |
auth.existingSecret | Name of existing secret containing the access token | "" |
auth.existingSecretAccessTokenKey | Key within the existing secret that contains the access token | "accessToken" |
RBAC Configuration
| Parameter | Description | Default |
|---|---|---|
rbac.create | Whether to create RBAC resources (ClusterRole and ClusterRoleBinding) | true |
Service Account Configuration
| Parameter | Description | Default |
|---|---|---|
serviceAccount.create | Whether to create a service account | true |
serviceAccount.name | Name of the service account to create or use | "" |
Valkey Configuration (Dependency)
| Parameter | Description | Default |
|---|---|---|
valkey.enabled | Enable/disable Valkey installation as a dependency | true |
valkey.auth.enabled | Enable/disable password authentication for Valkey | true |
valkey.auth.password | Valkey password | "" |
valkey.auth.existingSecret | Name of existing secret containing the Valkey password | "" |
valkey.auth.existingSecretPasswordKey | Key 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
-
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
-
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartclusterpirate is pinned at v1.6.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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