rdf-streaming-updater

by joaquinito2051

Helm chartv0.0.7

Helm Chart for running Flink in session-cluster mode

About this chart

rdf-streaming-updater

Running locally

prerequisites

  • docker
  • minikube -> https://v1-18.docs.kubernetes.io/docs/tasks/tools/install-minikube/
    • note: I used the docker driver
  • kubectl -> https://kubernetes.io/docs/tasks/tools/install-kubectl/
  • helm -> https://helm.sh/docs/intro/quickstart/
  • blubber -> https://wikitech.wikimedia.org/wiki/Blubber/Download

start minikube

  • minikube start

build docker image locally

  • go to flink-rdf-streaming-updater directory
  • use minikube as docker host: eval $(minikube docker-env)
  • run blubber and create local image: blubber .pipeline/blubber.yaml production | docker build --tag docker-registry.wikimedia.org/wikimedia/wikidata-query-flink-rdf-streaming-updater:latest --file - .

run rdf-streaming updater chart

  • cd deployment-charts/charts
  • helm install flink rdf-streaming-updater

useful commands

  • kubectl get pods -> shows running pods in k8 cluster
  • kubectl describe pods -> shows more detailed information about pods
  • kubectl logs -f <podname> -> follow the logs for a particular pod
  • minikube service rdf-streaming-updater-flink-ui -> opens url for Flink UI

tear down

  • remove flink installation: helm uninstall flink
  • delete minikube cluster: minikube delete

Deploy rdf-streaming-updater with OpenTenant

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