Deployment 如何使用helmfile
helmfile最近发布,我们希望采用它。 我的简单文件:Deployment 如何使用helmfile,deployment,kubernetes,kubectl,helmfile,kubernetes-helm,Deployment,Kubernetes,Kubectl,Helmfile,Kubernetes Helm,helmfile最近发布,我们希望采用它。 我的简单文件: vim charts.yaml ... releases: # Published chart example - name: prometheus_no_rbac # name of this release namespace: prometheus # target namespace chart: sta
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
当我跑步时:
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
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
cat helmfile.yaml
上下文:#我想不是强制性的
发布:
#已发布图表示例
-名称:promnorbacxubuntu#此版本的名称
名称空间:prometheus#目标名称空间
chart:stable/prometheus#为创建此版本而安装的图表,由“repository/chart”语法引用
设置:#值(--set)
-名称:rbac.create
值:false
用法:
helm install stable/prometheus --name prom --set rbac.create=false --namespace=prometheus
/helmfile-f hemlfile.yaml sync
问题是他们发布了一个新版本v0.10
Github问题:
我已在以下环境中对其进行了测试:
- Ubuntu 16.04
- Centos 7.3
- windows 10通过cygwin与minikube+Virtualbox
享受吧 我们在这里有一篇关于使用
helmfile
的综合性文章(附示例):此外,我建议您查看他们的最新添加:helmfile.d
,它允许您将helmfile分解为更小、有序的文件。我们在这里发布了我们的helmfile库:示例包括:kube2iam、kiam、外部dns、kube-lego、,证书经理、chartmuseum、nginx ingress、prometheus操作员、kube prometheus、grafana、数据日志、fluentd datadog日志、fluentd elasticsearch日志、heapster、kubernetes仪表板、门户、kibana