GithubHelp home page GithubHelp logo

dhomane / metabase-k8s Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeforphilly/metabase-k8s

0.0 1.0 0.0 4 KB

Set up Metabase in a Kubernetes cluster with a Postgres backend.

Shell 100.00%

metabase-k8s's Introduction

metabase-k8s

Set up Metabase in a Kubernetes cluster with a Postgres backend.

Up and Running

If you want to stand up an example of Metabase locally you can do so just after you install:

  • kind - Uses Docker to create a Kubernetes control plane and worker nodes on your local machine.
  • kubectl - The Kubernetes command line tool.

After you've installed these two tools, you can stand up a properly configured kind cluster by running:

bash local/start_kind.sh

This command creates a local kind cluster with HTTP ingress (see local/kind_config.yml for more details), using Contour (see local/start_kind.sh for more details).

After the kind cluster is up and running, you can simple execute:

kubectl apply -f manifests/local

This will create environment variables for the Postgres and Metabase containers, expose Postgres and Metabase as services, and make Metabase available to you at 127.0.0.1. You can check the status of your pods with kubectl get pods.

Metabase comes with a sample data set out of the box, so you can skip configuring your own data sources if you so choose.

Breakdown

When you are done with your cluster, you can run the following to delete your resources:

kubectl delete -f manifests/local

Finally, you can delete your cluster with:

kind delete cluster

Moving to Cloud

The local manifests are set up to be easy to run, and you should to be able to point at a remote k8s control plane (that is configured for HTTP ingress) and achieve the same results, however you may want to create a PersistentVolume for the Postgres database to ensure your Postgres backend is truly persistent.

Why Metabase?

Metabase is very easy to deploy, all you need to do is point a Metabase container at a Postgres database and then start using the Metabase GUI! It very much horizontally scalable, since every Metabase container simply needs to be pointed at the Postgres backend.

Additionally, Metabase has a full REST API, which can be very useful for programmatically setting up user access, database hooks, table documentation, and more.

metabase-k8s's People

Contributors

chriscardillo avatar dhomane avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.