Skip to content

tmuehl/saiki-pemetaan

Repository files navigation

Build Status

Pemetaan

We at Zalando needed a central interface for working with all things related to the Saiki Project. That included:

  • managing Kafka
    • overview on Cluster
    • manage Topics
    • monitor Topics
  • creating additional Data in Zookeeper to make it available to other components
  • Secure everything with Oauth2

Therefore we wrote Pemetaan (javanese for "Mapping"). Pemetaan is a Python3 Flask Application, wrapped in a WSGI container run by uWSGI. All Web Requests are managed by Nginx.

We suggest highly to run Pemetaan with the newest version of Saiki-Buku.

Functions

Broker Monitoring:

broker

Topic Management:

broker

Deployment

We suggest running the Docker Container directly. Build the Container:

docker build .

and then run the container in an environment where it can reach the Zookeeper Node of Kafka.

export CREDENTIALS_DIR=/dir/to/oauth/credentials
docker run \
  -u root \
  -p 80:80 -p 443:443 \
  -d \
  -e OAUTH_API_ENDPOINT=https://auth.example.com \
  -e TEAMCHECK_API=https://teams.example.com/api/teams/ \
  -e TEAMCHECK_ID=123345678 \
  -e ZOOKEEPER_CONN_STRING=zookeeper.example.com:2181 \
  -e APP_URL=https://pemetaan.example.com/ \
  -v $CREDENTIALS_DIR:/meta/credentials \
  -e CREDENTIALS_DIR=/meta/credentials \
  --name pemetaan \
  <PEMETAAN_IMAGE_ID>

Deployment with STUPS

We build Pemetaan specifically for the STUPS Toolbox. You can find a example Senza Definition Yaml File in the repository. This could be an example start (Its highly likely that you will need to adapt the yaml or the start command!):

senza create pemetaan.yaml 1 \
    DockerBaseImage=pierone.example.com/team/pemetaan \
    DockerVersion=1.0 \
    MintBucket=s3-mint-bucket-eu-west-1 \
    ScalyrAccountKey=super_secret_key_1 \
    LogentriesAccountKey=super_secret_key_2 \
    ApplicationID=pemetaan \
    ZookeeperConnectionString=zookeeper.example.com:2181 \
    HostedZone=example.com \
    TeamCheckAPI=https://teams.example.com/api/teams/ \
    TeamCheckID=123456789 \
    OAuthAPIEndpoint=https://auth.example.com

About

A Control Center for all Saiki and Kafka/Buku Tasks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published