如何使用helmfile

问题描述 投票:2回答:1

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

我的简单helmfile:

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!

当我跑:

./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

我只是想重写这段工作代码:

helm install stable/prometheus --name prom --set rbac.create=false --namespace=prometheus
deployment kubernetes kubectl helmfile kubernetes-helm
1个回答
1
投票

工作示例使用半身。

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

我在以下环境中测试了它:

  • Ubuntu 16.04
  • Centos 7.3
  • windows 10通过cygwin与minikube + Virtualbox

请享用!

© www.soinside.com 2019 - 2024. All rights reserved.