Giter Club home page Giter Club logo

kubernetes-notes's People

Watchers

 avatar

kubernetes-notes's Issues

helm

三个概念,Chart(应用定义)、Repository(应用仓库)、Release(部署的应用)

Chart

一个定义好的Helm部署包(可以理解为你的应用蓝图),helm create xxxchart 创建,里面包含了K8的基本结构,Deployemnt、Service、Ingress等。

helm package xxxchart 将Chart打包,生成 xxxchart-0.1.0.tgzhelm install ./xxxchart-0.1.0.tgz 将应用包推送到Repository(可是本地也可以是远程,类似Maven Repo),其他人可以在Repository中检索到你的Chart。

helm inspect xxxchart 查看Chart定义的最终结果,实际生成对应K8 Yaml的效果。

Repository

存储Chart的仓库,helm search xxxchart or helm search 检索Chart,helm repo list 查看注册的repo仓库。

Release

Chart定义好,且已经发行到对应的Repo中,你或其他人就可以检索到并且部署到K8的环境中,helm install xxxchart 或者 helm install ./xxxchart-0.1.0.tgz,前者是通过repo拉取Chart包,后者是直接安装本地包,

Helm会随机指定一个名字(也可以自定义),并把这个包部署到K8,称为Release,当然可以多次部署,有不同的名字,例如同事部署俩个Mysql数据库。称为俩个Release,name 不同。

helm delete xxx 删除对应的Release,注意,这里的xxx是Release的name不是Chart的name,helm ls 查看所有部署Release。

helm status intent-bunny 某个Release在K8中的运行情况。

helm upgrade intent-bunny ./xxxchart-0.1.0.tgz or helm upgrade itent-bunny xxxchart更新一个Release。

参考

https://whmzsu.github.io/helm-doc-zh-cn/quickstart/using_helm-zh_cn.html

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.