peaka

by joaquinito2051

Helm chartv1.1.0-beta.17-redhatApp 0.3.56

Helm chart of the best data integration platform, aka Peaka.

About this chart

Peaka Helm Chart

This Helm chart deploys Peaka in a Kubernetes cluster.

Prerequisites

  • Kubernetes 1.22+
  • Helm 3+
  • PV provisioner support in the underlying infrastructure

Installation

Get repository

helm repo add peaka https://peaka-chart.storage.googleapis.com/charts
helm repo update

Create Peaka Namespace

kubectl create namespace peaka

Install Traefik CRDs

Peaka uses Traefik IngressRoute and Middleware resources for routing. The Traefik CRDs must be applied to the cluster before helm install. Every chart release publishes a CRD bundle alongside it, so you can apply the bundle that matches whichever chart version you start from:

kubectl apply -f https://peaka-chart.storage.googleapis.com/crds/traefik-crds-<CHART_VERSION>.yaml

Replace <CHART_VERSION> with the chart version you intend to install (e.g. 1.1.0-beta.12).

You do not need to re-apply the CRDs on every chart upgrade. The contents of the CRD bundle only change when this chart starts depending on a new Traefik version. When that happens, the release notes for that chart version will call it out explicitly and tell you to re-run the kubectl apply above with the new bundle URL before running helm upgrade. As long as the release notes don't say so, upgrading the chart will keep working against the CRDs you applied at install time.

Install

helm install -n peaka [RELEASE_NAME] peaka/peaka

Upgrading to v1

Install new Traefik CRDs

kubectl apply --server-side --force-conflicts -k https://github.com/traefik/traefik-helm-chart/traefik/crds/

Upgrade Peaka

helm repo update
helm upgrade peaka peaka/peaka

(Optional) Delete old Traefik CRDs

This step is optional as the upgrade will use new CRDs.

kubectl delete -k https://github.com/traefik/traefik-helm-chart/traefik/crds?ref=v20.8.0

Configuration

Some configurations must be set for Peaka to run as expected.

  • Peaka's container images are not publicly available. You will be given a json file containing access credentials to Peaka's container image registry. You need to set .Values.imagePullSecret.gcpRegistryAuth.password to the content of the json file. This will create a Kubernetes Secret of type docker-registry, which Peaka services will use as imagePullSecret.

  • Peaka services need to know the URL and port through which the services will be accessed beforehand. For that, you need to fill accessUrl parameter in values.yaml. Read Configuring Access URLs section for detailed explanation.

  • Peaka appilaction utilizes Traefik Proxy for some internal routing configurations and exposing Peaka to outside world. Read Exposing Peaka for more information.

Configuring Access URLs

Before deploying Peaka, you must configure how the services will be accessed by setting the accessUrl parameters in values.yaml. These settings are crucial for:

  • Proper CORS (Cross-Origin Resource Sharing) policy configuration
  • Correct URI generation in API responses
  • Accurate JDBC connection strings

Update the following parameters in your values.yaml:

  • accessUrl.domain: The domain name or IP address where your services will be accessible (e.g., "localhost", "peaka.example.com")
  • accessUrl.scheme: The URL scheme ("http" or "https")
  • accessUrl.port: The port number for accessing the Studio web application (default: 8000)
  • accessUrl.dbcPort: The port number for JDBC service connections (default: 4567)

For example, if you want to access Peaka from localhost, fill the accessUrl parameter as below:

accessUrl:
  domain: "localhost"
  scheme: "http"
  port: 8000
  dbcPort: 4567

Install the Peaka helm chart, and run kubectl port-forward:

export POD_NAME=$(kubectl get pods --namespace <namespace> -l "app.kubernetes.io/name=traefik" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward $POD_NAME 8000 --namespace <namespace>

Now, you can access Peaka Studio web application through http://localhost:8000.

Similarly, if you run

export POD_NAME=$(kubectl get pods --namespace <namespace> -l "app.kubernetes.io/name=traefik" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward $POD_NAME 4567 --namespace <namespace>

you can use the Peaka JDBC service using http://localhost:4567.

Exposing Peaka

Peaka application is accessible through the Traefik service deployed with this chart. By default, it is only available inside the cluster (ClusterIP).

1. Choose service type

If you want to expose Peaka externally, update the traefik.service.type field in your values.yaml:

traefik:
  service:
    type: LoadBalancer    # or NodePort / ClusterIP
  • ClusterIP (default): Internal access only.
  • NodePort: Expose the app on each node’s IP at a fixed port.
  • LoadBalancer: Create an external load balancer (requires cloud provider support).

2. Choose ports to expose

  • Peaka Studio Web Application

    • Without TLS termiantion in Peaka:

      traefik:
        ports:
          web:
            expose: true
            nodePort: 30080   # set this if using NodePort or LoadBalancer, otherwise Kubernetes will assign a random port    
      
    • With TLS termination in Peaka:

      traefik:
        ports:
          websecure:
            expose: true
            nodePort: 30443   # set this if using NodePort or LoadBalancer, otherwise Kubernetes will assign a random port
      
  • Peaka JDBC Service

    traefik:
      ports:
        dbc:
          expose: true
          nodePort: 30567     # set this if using NodePort or LoadBalancer, otherwise Kubernetes will assign a random port
    

For more information about Traefik's installation parameters, consult the Traefik Helm Chart.

Known Limitations

  • If you are accessing Peaka from a hostname which is not localhost, then you need to enable TLS to access Peaka studio web application. If TLS is terminated before the traffic reaches Peaka app, then TLS of this chart should be disabled by setting tls.enabled to false in values.yaml. If you plan to have Peaka terminate TLS, then set tls.enabled to true and enter certificate details in tls.cert and tls.key in values.yaml.

Deploy peaka with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has peaka 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 chartpeaka is pinned at v1.1.0-beta.17-redhat 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