kinesis

by Said Sef

Helm chartv0.23.0App 2.1.0Apache-2.0

A Kinesis Local Helm chart for Kubernetes

About this chart

kinesis

A Kinesis Local Helm chart for Kubernetes

Homepage: https://github.com/saidsef/aws-kinesis-local

Maintainers

NameEmailUrl
Said Sef[email protected]https://saidsef.co.uk/

Source Code

Requirements

Kubernetes: >= 1.32.0

Values

KeyTypeDefaultDescription
affinityobject{}Pod affinity rules.
env.CREATESTREAMMSstring"50"--createStreamMs, how long in milliseconds a new stream, consumer or channel stays in CREATING.
env.DELETESTREAMMSstring"50"--deleteStreamMs, how long in milliseconds a deleted stream, consumer or channel stays in DELETING.
env.DELIVERYINTERVALMSstring""--deliveryIntervalMs, how long in milliseconds a channel buffers records before it writes an object. Empty uses the data freshness interval of each channel.
env.KPATHstring"/data"--path, the directory that holds the SQLite database. The chart mounts the data volume here.
env.LOGLEVELstring"warn"--logLevel, the least severe level that aws-kinesis-local logs: error, warn, info, debug or trace.
env.PORTstring"4567"--port, the port that aws-kinesis-local listens on for HTTP/1.1 and HTTP/2. Also sets the container port.
env.S3ENDPOINTstring""--s3Endpoint, the S3 endpoint that channels deliver records to. Empty turns delivery off. Delivery also needs s3.existingSecret.
env.S3REGIONstring""--s3Region, the region in the signature of each S3 request. Empty uses the region in ARNs.
env.SHARDLIMITstring"50"--shardLimit, the maximum number of open shards across all provisioned streams.
env.UPDATESTREAMMSstring"50"--updateStreamMs, how long in milliseconds a stream or channel stays in UPDATING.
fullnameOverridestring""Override the fully qualified app name.
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"docker.io/saidsef/aws-kinesis-local"Image repository.
image.tagstring""Image tag. Empty uses the chart appVersion, which matches the npm package version.
imagePullSecretslist[]Pull secrets for private registries.
livenessProbeobjecthttpGet path=/healthz port=tcp, periodSeconds=10Liveness probe spec.
nameOverridestring""Override the chart name.
nodeSelectorobject{}Node selector.
persistence.accessModeslist["ReadWriteOnce"]PVC access modes when persistence is enabled.
persistence.enabledboolfalseBack /data with a volumeClaimTemplate instead of emptyDir.
persistence.sizestring"1Gi"PVC size.
persistence.storageClassstring""StorageClass name. Empty uses the cluster default.
podAnnotationsobject{}Pod annotations.
podDisruptionBudget.enabledboolfalseRender a policy/v1 PodDisruptionBudget.
podDisruptionBudget.maxUnavailableint1PDB maxUnavailable. The default lets a node drain evict the pod when the chart runs one replica. The chart ignores this value when minAvailable is set.
podDisruptionBudget.minAvailableintunsetPDB minAvailable. When this value is set, it wins over maxUnavailable, and the PDB carries only minAvailable.
podSecurityContextobject{"fsGroup":65534,"fsGroupChangePolicy":"OnRootMismatch"}Pod-level securityContext. fsGroup makes Kubernetes set the group of the data volume to 65534, the group that the container runs as, and make it writable by that group. aws-kinesis-local can then open its database on a volume that root owns. With OnRootMismatch, Kubernetes changes ownership and permissions only when those of the volume root do not already match.
readinessProbeobjecthttpGet path=/readyz port=tcp, periodSeconds=5Readiness probe spec.
replicaCountint1StatefulSet replica count. Replicas do not share streams. Each replica keeps its own database, and the Service spreads connections across all replicas, so a request can reach a replica that does not hold the stream.
resources.limits.cpustring"200m"CPU limit.
resources.limits.memorystring"1Gi"Memory limit.
resources.requests.cpustring"100m"CPU request.
resources.requests.memorystring"512Mi"Memory request.
revisionHistoryLimitint5StatefulSet revisionHistoryLimit.
s3.accessKeyIdKeystring"S3_ACCESS_KEY_ID"Key in s3.existingSecret that holds the access key ID.
s3.existingSecretstring""Existing Secret that holds the S3 credentials for channel delivery. The chart sets S3_ACCESS_KEY_ID and S3_SECRET_ACCESS_KEY from it. Empty sets neither.
s3.secretAccessKeyKeystring"S3_SECRET_ACCESS_KEY"Key in s3.existingSecret that holds the secret access key.
securityContextobjecthardened defaultsContainer securityContext: non-root, read-only rootfs, all caps dropped, seccomp RuntimeDefault.
service.headlessboolfalseSet clusterIP: None for headless DNS. Clients then reach the pods on the container port, env.PORT, and not on service.port.
service.portint80Service port.
service.testRegionstring"eu-west-1"Region passed to the helm test aws-cli call.
service.typestring"ClusterIP"Service type.
serviceAccount.annotationsobject{}ServiceAccount annotations.
serviceAccount.createbooltrueWhether to create a ServiceAccount.
serviceAccount.namestring""If empty, defaults to the fullname.
startupProbeobjecthttpGet path=/healthz port=tcp, failureThreshold=30Startup probe spec.
terminationGracePeriodSecondsint60Pod terminationGracePeriodSeconds.
testImage.pullPolicystring"IfNotPresent"Pull policy for the helm-test image.
testImage.repositorystring"amazon/aws-cli"helm-test image repo.
testImage.tagstring"2.17.0"helm-test image tag (pinned).
tolerationslist[]Pod tolerations.
topologySpreadConstraintslist[]Pod topology spread constraints.

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy kinesis with OpenTenant

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