Skip to content

hlxwell/exchange-on-k8s-demo

Repository files navigation

API design

auth-service

  • POST /api/v1/sessions {email, password} return :token
  • DELETE /api/v1/sessions {token}

trade-service

  • GET /api/v1/trades

order-service

  • POST /api/v1/orders {pair,side,price,volume}
  • GET /api/v1/orders

account-service

  • GET /api/v1/accounts/my_balance?currency=*

Alpine options to allow untrusted repo

$ apk add docker \
  --update-cache \
  --repository http://mirrors.ustc.edu.cn/alpine/v3.4/main/ \
  --allow-untrusted

Enable istio-injection

kubectl label namespace exchange-on-k8s-v1 istio-injection=enabled

TODO

  • CI (gitlab)
  • CD (GKE)
  • Release flow, control the production operation permission.
  • Add centralized trading pair config which can be used by all the services.

About

This is a microservice tutorial project based on K8S + ISTIO + HELM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published