Coder Social home page Coder Social logo

dockercoins's Introduction

Kubernetes 101 结业测试

使用helm编排帮助docker币开发团队完成,应用在devuatprod环境部署:

  • 需要使用helm完成两个charts

    • Dev,uat的helm charts传递服务名和镜像版本用于开发流程中部署单个服务
    • Prod环境的helm charts 编排整个docker币所有服务用于prod环境发布
  • 其他需求

    • 在k8s环境创建三个namespace, dev,uat,prod模拟三个环境
    • Uat和prod环境部署应用需要有k8s健康检查,liveness,readiness
    • 需要编排的资源至少但不限于 ingress,service,deployment,daemonsets
    • Worker,hasher应用使用deployment部署,rng应用使用 daemonsets部署
    • dev,uat环境redis部署在k8s上,prod环境redis服务部署在192.168.33.101服务器上
    • 应用访问地址为 - dev-webui.192.168.33.111.nip.io(DEV) - uat-webui.192.168.33.111.nip.io(UAT) - webui.192.168.33.111.nip.io(PROD)
      • 所有k8s资源包含 labels
        • projectname=dockercoins,environment=<环境名称>,servicename=<服务名称>
      • Deployment的k8s资源包含环境变量,
        • PROJECT_NAME=dockercoins,ENVIRONMENT=<环境名称>,SERVICE_NAME=<服务名称>
      • helm test (可选)
      • 建立一个github仓库保存helm charts,提交仓库地址

Helper commands:

# debug语法错误和输出的资源信息
helm install --dry-run --debug --namespace dockercoins-dev --set webui.enabled=true .

# 运行单个服务
cd ./charts/dockercoins-single/
helm install --name webui --namespace dockercoins-dev --set webui.enabled=true .

# 运行全部服务
helm install --name dockersoincs --namespace dockercoins-prod .

# 删除服务
helm delete dockercoins --purge

# 查看全部资源
kubectl get all -n dockercoins-prod

dockercoins's People

Contributors

leiguang avatar

Watchers

 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.