我正在编写一个Ansible任务,以便在我的GitLab环境中部署k3s。
根据文档,我需要执行这个命令来使用Helm安装GitLab:
$ helm install gitlab gitlab/gitlab \
--set global.hosts.domain=DOMAIN \
--set certmanager-issuer.email=me@example.com但是community.kubernetes.helm不处理--set参数,只使用--values参数调用helm。
所以我的任务看起来如下:
- name: Deploy GitLab
community.kubernetes.helm:
update_repo_cache: yes
release_name: gitlab
chart_ref: gitlab/gitlab
release_namespace: git
release_values:
global.hosts.domain: example.com
certmanager-issuer.email: info@example.com但是舵图仍然返回错误You must provide an email to associate with your TLS certificates. Please set certmanager-issuer.email.。
我已经在终端中手动尝试过了,GitLab头盔图似乎需要--set参数,而--values失败了。但community.kubernetes.helm没有。
我能做什么?
GitLab头盔图上有错误吗?
发布于 2020-11-11 06:08:00
看来,GitLab头盔图需要设置参数,并以-值失败。
这是一个错误的假设;您所遇到的是--set在.上拆分,因为否则在命令行上提供完全格式的YAML将是痛苦的。
正确的值使用发生.的子对象:
- name: Deploy GitLab
community.kubernetes.helm:
update_repo_cache: yes
release_name: gitlab
chart_ref: gitlab/gitlab
release_namespace: git
release_values:
global:
hosts:
# https://gitlab.com/gitlab-org/charts/gitlab/-/blob/v4.4.5/values.yaml#L47
domain: example.com
# https://gitlab.com/gitlab-org/charts/gitlab/-/blob/v4.4.5/values.yaml#L592-595
certmanager-issuer:
email: info@example.comhttps://stackoverflow.com/questions/64761112
复制相似问题