GithubHelp home page GithubHelp logo

vearch / vearch-helm Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 0.0 57 KB

Vearch helm charts

Home Page: https://vearch.github.io/vearch-helm/

License: Apache License 2.0

Makefile 1.45% Shell 48.13% Mustache 50.42%

vearch-helm's Introduction

vearch-helm

Deploy vearch using Kubernetes and Helm

The vearch-helm project helps deploy a vearch cluster orchestrated by Kubernetes.

Prerequisite

Kubernetes 1.19+ Helm 3.8.1+

Deploy vearch cluster

$ helm repo add vearch https://vearch.github.io/vearch-helm
$ helm repo update
$ helm install vearch vearch/vearch

Note that vearch-helm/charts/values.yaml shows all the config parameters of vearch. The parameters global.data and global.log are used to store server data and logs, respectively.

The output of helm install shows servers to be deployed.

Use the following command to check pod status, which may take a few minutes.

$ kubectl -n vearch get pods
NAME                     READY   STATUS    RESTARTS   AGE
master-0                 1/1     Running   0          31s
master-1                 1/1     Running   0          27s
master-2                 1/1     Running   0          25s
ps-5b555988fb-2cdqz      1/1     Running   0          31s
ps-5b555988fb-8rt2j      1/1     Running   0          31s
ps-5b555988fb-sb4kv      1/1     Running   0          31s
router-7774c5f98-88fbm   1/1     Running   0          31s

Check cluster status

helm status vearch

Delete cluster

helm delete --purge vearch

Config Monitoring System (optional)

Monitor daemons are started if the cluster is deployed with vearch-helm. Vearch uses Consul, Prometheus and Grafana to construct the monitoring system.

Accessing the monitor dashboard requires Kubernetes Ingress Controller. In this example, the Nginx Ingress is used. Install it :

helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx/
helm install --name ingress-nginx ingress-nginx/ingress-nginx

Get the IP address of Nginx ingress controller.

$ kubectl get pods -A -o wide | grep nginx-ingress-controller
ingress-nginx   ingress-nginx-controller-6876ccf9fb-m4lhq          1/1     Running            0          23h   172.17.0.5      host-10-196-31-101   <none>           <none>

Get the host name of Grafana which should also be used as domain name.

$ kubectl get ingress -n vearch
NAME      HOSTS                  ADDRESS         PORTS   AGE
grafana   monitor.vearch.com                     80      24h

Add a local DNS in /etc/hosts in order for a request to find the ingress controller.

172.17.0.5 monitor.vearch.com

vearch-helm's People

Contributors

wxingda avatar

Stargazers

 avatar  avatar  avatar

Watchers

ansj avatar Haifeng Liu avatar  avatar  avatar  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.