GithubHelp home page GithubHelp logo

isabella232 / dmt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minio/dmt

0.0 0.0 0.0 143 KB

Direct MinIO Tunnel

License: GNU Affero General Public License v3.0

Dockerfile 3.33% Go 89.01% Makefile 7.66%

dmt's Introduction

Direct MinIO Tunnel

Usage dmt

Usage of ./dmt:
  -ca-cert string
        CA certificates (default "/etc/dmt/ca.crt")
  -tls-dir string
        TLS certificate directories (default "/etc/dmt/tls")

Docker

For development and local testing you can build new docker image via make

TAG=minio/dmt:dev make docker

Kubernetes

When deploying to kubernetes, dmt requires a configmap with the name dmt-config to exists in the same namespace dmt is running, you can create the configmap using the following commands:

echo "{\"version\": \"1\", \"routes\": {}}" > routes.json
kubectl create cm dmt-config --from-file=routes.json

Additionally, TLS for dmt server is mandatory, make sure certificate secrets exists in the same namespace dmt is running, ie

kubectl create secret generic dmt-ca-cert --from-file=ca.crt
kubectl create secret generic certificate-secrets-domain-1 --from-file=tls.crt --from-file=tls.key

Deploy dmt

kubectl apply -f k8s/examples/dmt.yaml

Your application can start pushing k/v to the dmt-config configmap in JSON format and dmt will react to those changes via k8s informers.

routes.json example

{
    "version": "1",
    "routes": {
        "0HHZW0BSUIK3TGCF": "backend-1:9000",
        "1OIGLFDMYMWIJCFV": "backend-2:9000",
        "2S2UPSUO4L4XMTU0": "backend-3:9000",
        "4103GYZD1OFNTL3Y": "backend-4:9000",
        "4QW2BNRBPGSUP24Z": "backend-5:9000"
    }
}

dmt's People

Contributors

alevsk avatar harshavardhana 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.