首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用helmfile

如何使用helmfile
EN

Stack Overflow用户
提问于 2018-03-16 08:51:00
回答 1查看 12.6K关注 0票数 3

helmfile是最近发布的,我们想采用它。https://github.com/roboll/helmfile

我的简单helmfile:

代码语言:javascript
复制
vim charts.yaml

...
releases:
  # Published chart example
  - name: prometheus_no_rbac                            # name of this release
    namespace: prometheus                       # target namespace
    chart: stable/prometheus     # the chart being installed to create this release, referenced by `repository/chart` syntax
    #values: [ vault.yaml ]                 # value files (--values)
    set:                                   # values (--set)
      - name: rbac.create
        value: false
...
wq!

运行时的

代码语言:javascript
复制
./helmfile -f charts.yaml
NAME:
   helmfile -

USAGE:
   helmfile [global options] command [command options] [arguments...]

VERSION:
   v0.8

COMMANDS:
     repos   sync repositories from state file (helm repo add && helm repo update)
     charts  sync charts from state file (helm repo upgrade --install)
     diff    diff charts from state file against env (helm diff)
     sync    sync all resources from state file (repos && charts)
     delete  delete charts from state file (helm delete)

GLOBAL OPTIONS:
   --file FILE, -f FILE  load config from FILE (default: "charts.yaml")
   --quiet, -q           silence output
   --kube-context value  Set kubectl context. Uses current context by default
   --help, -h            show help
   --version, -v         print the version

我只想重写这段工作代码

代码语言:javascript
复制
helm install stable/prometheus --name prom --set rbac.create=false --namespace=prometheus
EN

回答 1

Stack Overflow用户

发布于 2018-03-17 11:58:37

使用的文件的工作示例。

代码语言:javascript
复制
cat helmfile.yaml

context: <my_context> # not mandatory I guess

releases:
  # Published chart example
  - name: promnorbacxubuntu         # name of this release
    namespace: prometheus              # target namespace
    chart: stable/prometheus             # the chart being installed to create this release, referenced by `repository/chart` syntax
    set:                                   # values (--set)
      - name: rbac.create
        value: false

使用

./helmfile -f hemlfile.yaml sync

问题是他们发布了一个新版本的v0.10 https://github.com/roboll/helmfile/releases/tag/v0.10

Github杂志https://github.com/roboll/helmfile/issues/55#issuecomment-373714894

我在以下env中测试了它:

  • Ubuntu 16.04
  • Centos 7.3
  • windows 10 via cygwin with minikube + Virtualbox

享受吧!

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49316488

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档