【问题标题】:How to use helmfile如何使用 helmfile
【发布时间】:2018-08-25 06:28:17
【问题描述】:

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

【问题讨论】:

  • 我们在这里有一篇关于使用helmfile 的综合文章(带有示例):docs.cloudposse.com/tools/helmfile 另外,我建议查看他们的最新添加:helmfile.d,它允许您将 helmfile 分解为更小的, 有序文件。
  • 我们在这里发布了我们的 helmfile 库:github.com/cloudposse/helmfiles 示例包括:kube2iam、kiam、external-dns、kube-lego、cert-manager、chartmuseum、nginx-ingress、prometheus-operator、kube -prometheus、grafana、datalog、fluentd-datadog-logs、fluentd-elasticsearch-logs、heapster、kubernetes 仪表板、门户、kibana

标签: deployment kubernetes kubectl helmfile kubernetes-helm


【解决方案1】:

hemlfile 使用示例。

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

享受吧!

【讨论】:

    猜你喜欢
    • 2020-04-29
    • 1970-01-01
    • 2022-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多