Skip to content

Latest commit

 

History

History
132 lines (122 loc) · 15.6 KB

README.md

File metadata and controls

132 lines (122 loc) · 15.6 KB

hyperfleet-sentinel

Version: 1.1.0 Type: application AppVersion: 0.0.0-dev

HyperFleet Sentinel - Kubernetes service that polls HyperFleet API and publishes CloudEvents

Homepage: https://github.com/openshift-hyperfleet/hyperfleet-sentinel

For the full deployment guide (configuration, broker setup, examples), see the Deployment Guide.

Installation

helm install hyperfleet-sentinel oci://quay.io/redhat-services-prod/hyperfleet-tenant/hyperfleet/hyperfleet-sentinel-chart \
  --set image.registry=quay.io \
  --set image.repository=redhat-services-prod/hyperfleet-tenant/hyperfleet/hyperfleet-sentinel \
  --set image.tag=<version>

Maintainers

Name Email Url
HyperFleet Team

Values

Key Type Default Description
replicaCount int 1 Number of sentinel replicas. Setting >1 duplicates events; scale via separate Helm releases with non-overlapping resourceSelector values instead. See docs/multi-instance-deployment.md.
image.registry string "CHANGE_ME" Container image registry (no default — must be set)
image.repository string "CHANGE_ME" Container image repository (no default — must be set)
image.pullPolicy string "Always" Image pull policy
image.tag string "" Image tag (no default — must be set via --set image.tag=<version>)
imagePullSecrets list [] Secrets for pulling images from private registries
nameOverride string "" Override the chart name used in resource names
fullnameOverride string "" Override the full release name used in resource names
serviceAccount object {"annotations":{},"create":true,"name":""} ServiceAccount configuration
serviceAccount.create bool true Create a ServiceAccount for the sentinel
serviceAccount.annotations object {} Annotations added to the ServiceAccount. For GCP Pub/Sub with Workload Identity Federation, use gcloud projects add-iam-policy-binding with the principal:// format instead of annotations.
serviceAccount.name string "" Override the ServiceAccount name (defaults to the release fullname)
podAnnotations object {} Additional annotations applied to all pods
podLabels object {} Additional labels applied to all pods
labels object {} Custom labels applied to all resources managed by this Helm chart (Deployment, Service, ServiceAccount, ConfigMaps, etc.) Useful for labeling resources for cleanup, tracking, or organization. Example: labels: environment: production team: platform hyperfleet-e2e-run: e2e-20260615-102422-bb5nfo2d
podSecurityContext object {"fsGroup":65532,"runAsNonRoot":true,"runAsUser":65532} Pod-level security context
podSecurityContext.fsGroup int 65532 Filesystem group for volume mounts
podSecurityContext.runAsNonRoot bool true Run all containers as non-root
podSecurityContext.runAsUser int 65532 UID for all containers
securityContext object {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"seccompProfile":{"type":"RuntimeDefault"}} Container-level security context
securityContext.readOnlyRootFilesystem bool true Mount root filesystem as read-only
securityContext.allowPrivilegeEscalation bool false Disallow privilege escalation
resources object {"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}} CPU and memory resource requests and limits
nodeSelector object {} Node selector constraints for pod scheduling
tolerations list [] Tolerations for pod scheduling
affinity object {} Affinity rules for pod scheduling
extraVolumes list [] Additional volumes for the pod, e.g. a Secret holding the CA referenced by config.clients.hyperfleetApi.caFile.
extraVolumeMounts list [] Additional volume mounts for the sentinel container.
podDisruptionBudget object {"enabled":true,"maxUnavailable":1} PodDisruptionBudget configuration
podDisruptionBudget.enabled bool true Enable the PDB
podDisruptionBudget.maxUnavailable int 1 Maximum number of pods that can be unavailable during disruption
config object See values.yaml Sentinel application configuration. All settings in this section generate the ConfigMap consumed by the sentinel.
config.sentinel object {"name":"hyperfleet-sentinel-{{ .Values.config.resourceType }}"} Sentinel identity settings
config.sentinel.name string "hyperfleet-sentinel-{{ .Values.config.resourceType }}" Sentinel component name (templated with shard value when resource selector is used)
config.debugConfig bool false Log merged configuration on startup for debugging
config.log object {"format":"json","level":"info","output":"stdout"} Logging configuration
config.log.level string "info" Log level (debug, info, warn, error)
config.log.format string "json" Log format (json or text)
config.log.output string "stdout" Log output destination
config.clients object {"hyperfleetApi":{"auth":{"audience":"hyperfleet-api","enabled":false,"expirationSeconds":3600,"scheme":"Bearer","tokenCacheTtl":"30s","tokenPath":"/var/run/secrets/hyperfleet/token"},"baseUrl":"http://hyperfleet-api:8000","caFile":"","timeout":"10s","version":"v1"}} Client configuration
config.clients.hyperfleetApi object {"auth":{"audience":"hyperfleet-api","enabled":false,"expirationSeconds":3600,"scheme":"Bearer","tokenCacheTtl":"30s","tokenPath":"/var/run/secrets/hyperfleet/token"},"baseUrl":"http://hyperfleet-api:8000","caFile":"","timeout":"10s","version":"v1"} HyperFleet API client settings
config.clients.hyperfleetApi.baseUrl string "http://hyperfleet-api:8000" API base URL (use in-cluster service name)
config.clients.hyperfleetApi.version string "v1" API version
config.clients.hyperfleetApi.timeout string "10s" HTTP client timeout
config.clients.hyperfleetApi.caFile string "" Optional absolute path to a PEM CA bundle trusted, in addition to the system roots, when verifying the API's TLS certificate. Empty means off. The file must exist in the container (mount it with extraVolumes / extraVolumeMounts), is read once at startup, and replacing it requires a pod restart.
config.clients.hyperfleetApi.auth object {"audience":"hyperfleet-api","enabled":false,"expirationSeconds":3600,"scheme":"Bearer","tokenCacheTtl":"30s","tokenPath":"/var/run/secrets/hyperfleet/token"} Optional JWT authentication via a Kubernetes projected service account token. When enabled, a projected volume is mounted and the token is sent using the configured Authorization scheme on every API request.
config.clients.hyperfleetApi.auth.enabled bool false Enable JWT authentication
config.clients.hyperfleetApi.auth.audience string "hyperfleet-api" Audience for the projected service account token
config.clients.hyperfleetApi.auth.tokenPath string "/var/run/secrets/hyperfleet/token" Full path where the token file is mounted in the container
config.clients.hyperfleetApi.auth.scheme string "Bearer" Authorization header scheme used when sending the token (e.g. Bearer for in-app JWT validation, ServiceAccount when a gateway differentiates machine callers from human-jwt callers)
config.clients.hyperfleetApi.auth.expirationSeconds int 3600 Token lifetime in seconds; Kubernetes rotates the token before it expires
config.clients.hyperfleetApi.auth.tokenCacheTtl string "30s" How long the token is cached in memory before the file is re-read; 0 disables caching
config.resourceType string "clusters" Resource type plural to watch (any registered entity type, e.g. clusters, nodepools, wifconfigs)
config.pollInterval string "5s" How often to poll the API for resource updates
config.messageDecision object See values.yaml for default CEL expressions CEL-based decision logic that determines whether to publish an event. params are named CEL expressions evaluated in dependency order. result is a boolean CEL expression using the params.
config.resourceSelector list [] Resource selector for horizontal sharding. Deploy multiple sentinel instances with different shard values. Empty by default (no filtering). Example: resourceSelector: [{label: shard, value: "1"}]
config.messageData object {"generation":"resource.generation","href":"resource.href","id":"resource.id","kind":"resource.kind"} CloudEvents data payload configuration. Values are CEL expressions evaluated against the resource.
broker object {"googlepubsub":{"createTopicIfMissing":false,"maxOutstandingMessages":1000,"numGoroutines":10,"projectId":"your-gcp-project-id"},"rabbitmq":{"exchangeType":"topic","url":"amqp://<USER>:<PASSWORD>@rabbitmq.hyperfleet-system.svc.cluster.local:5672/hyperfleet"},"topic":"{{ .Release.Namespace }}-{{ .Values.config.resourceType }}","type":"rabbitmq"} Broker configuration for event publishing. WARNING: Never commit real credentials to git. Use external secrets management (External Secrets Operator, Sealed Secrets, Vault).
broker.type string "rabbitmq" Broker type (rabbitmq or googlepubsub). See the broker library.
broker.topic string "{{ .Release.Namespace }}-{{ .Values.config.resourceType }}" Topic name for event publishing. Default uses Helm template {namespace}-{resourceType} for multi-tenant isolation.
broker.rabbitmq object {"exchangeType":"topic","url":"amqp://<USER>:<PASSWORD>@rabbitmq.hyperfleet-system.svc.cluster.local:5672/hyperfleet"} RabbitMQ configuration
broker.rabbitmq.url string "amqp://<USER>:<PASSWORD>@rabbitmq.hyperfleet-system.svc.cluster.local:5672/hyperfleet" Connection URL (amqp://user:password@host:port/vhost)
broker.rabbitmq.exchangeType string "topic" Exchange type
broker.googlepubsub object {"createTopicIfMissing":false,"maxOutstandingMessages":1000,"numGoroutines":10,"projectId":"your-gcp-project-id"} Google Pub/Sub configuration
broker.googlepubsub.projectId string "your-gcp-project-id" GCP project ID (required when using Pub/Sub)
broker.googlepubsub.maxOutstandingMessages int 1000 Maximum outstanding messages
broker.googlepubsub.numGoroutines int 10 Number of subscriber goroutines
broker.googlepubsub.createTopicIfMissing bool false Auto-create topic if it does not exist (use false in production)
monitoring object {"dashboard":{"enabled":false},"podMonitoring":{"additionalLabels":{},"enabled":false,"interval":"30s","metricRelabeling":[]},"prometheusRule":{"additionalLabels":{},"alerts":{"sentinelPollStale":{"for":"1m","staleAfterSeconds":60}},"enabled":false,"namespace":""},"serviceMonitor":{"enabled":false,"honorLabels":true,"interval":"30s","labels":{},"metricRelabeling":[],"namespace":"","namespaceSelector":{},"scrapeTimeout":"10s"},"tracing":{"enabled":false,"otlpEndpoint":"","otlpProtocol":"grpc","propagators":"tracecontext,baggage","sampler":"parentbased_always_on","samplerArg":"","serviceName":"hyperfleet-sentinel"}} Monitoring and metrics configuration
monitoring.podMonitoring object {"additionalLabels":{},"enabled":false,"interval":"30s","metricRelabeling":[]} PodMonitoring for Google Cloud Managed Prometheus (GMP)
monitoring.podMonitoring.enabled bool false Create a PodMonitoring resource
monitoring.podMonitoring.interval string "30s" Scrape interval
monitoring.podMonitoring.additionalLabels object {} Additional labels for PodMonitoring discovery
monitoring.podMonitoring.metricRelabeling list [] Metric relabel configs applied before ingestion
monitoring.serviceMonitor object {"enabled":false,"honorLabels":true,"interval":"30s","labels":{},"metricRelabeling":[],"namespace":"","namespaceSelector":{},"scrapeTimeout":"10s"} ServiceMonitor for Prometheus Operator environments
monitoring.serviceMonitor.enabled bool false Create a ServiceMonitor resource
monitoring.serviceMonitor.interval string "30s" Scrape interval
monitoring.serviceMonitor.scrapeTimeout string "10s" Scrape timeout (must be less than interval)
monitoring.serviceMonitor.labels object {} Additional labels for ServiceMonitor discovery
monitoring.serviceMonitor.namespaceSelector object {} Namespace selector for cross-namespace monitoring
monitoring.serviceMonitor.honorLabels bool true Honor labels from the target to avoid overwriting
monitoring.serviceMonitor.metricRelabeling list [] Metric relabel configs applied before ingestion
monitoring.serviceMonitor.namespace string "" Override the namespace where ServiceMonitor is created (defaults to release namespace)
monitoring.prometheusRule object {"additionalLabels":{},"alerts":{"sentinelPollStale":{"for":"1m","staleAfterSeconds":60}},"enabled":false,"namespace":""} PrometheusRule for alerting (requires Prometheus Operator)
monitoring.prometheusRule.enabled bool false Create PrometheusRule resources
monitoring.prometheusRule.namespace string "" Namespace to create the PrometheusRule in (defaults to release namespace)
monitoring.prometheusRule.additionalLabels object {} Additional labels for PrometheusRule discovery
monitoring.prometheusRule.alerts object {"sentinelPollStale":{"for":"1m","staleAfterSeconds":60}} Alert rule configuration
monitoring.prometheusRule.alerts.sentinelPollStale object {"for":"1m","staleAfterSeconds":60} Poll staleness alert
monitoring.prometheusRule.alerts.sentinelPollStale.staleAfterSeconds int 60 Seconds after which a poll is considered stale
monitoring.prometheusRule.alerts.sentinelPollStale.for string "1m" Duration before the alert fires
monitoring.dashboard object {"enabled":false} Grafana dashboard provisioning via sidecar ConfigMap
monitoring.dashboard.enabled bool false Create a ConfigMap with the Grafana dashboard JSON
monitoring.tracing object {"enabled":false,"otlpEndpoint":"","otlpProtocol":"grpc","propagators":"tracecontext,baggage","sampler":"parentbased_always_on","samplerArg":"","serviceName":"hyperfleet-sentinel"} Distributed tracing configuration (OpenTelemetry)
monitoring.tracing.enabled bool false Enable trace export
monitoring.tracing.serviceName string "hyperfleet-sentinel" Service name reported in traces
monitoring.tracing.otlpEndpoint string "" OTLP exporter endpoint (traces go to stdout when empty)
monitoring.tracing.otlpProtocol string "grpc" OTLP protocol (grpc or http/protobuf)
monitoring.tracing.sampler string "parentbased_always_on" Sampler type
monitoring.tracing.samplerArg string "" Sampling rate (only used with ratio-based samplers)
monitoring.tracing.propagators string "tracecontext,baggage" Context propagation formats

Autogenerated from chart metadata using helm-docs