株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

リファレンス
https://docs.ansible.com/ansible/latest/collections/kubernetes/core/helm_module.html

リポジトリ追加は、kubernetes.core.helm_repositoryを使う。
kubernetes.core.helmを使って、helm installをするが、追加してきたリポジトリを参照するためには、update_repo_cache: trueの記述が必要。

- name: Add ingress-nginx repository
  kubernetes.core.helm_repository:
    binary_path: /usr/local/bin/helm
    name: stable
    repo_url: "https://kubernetes.github.io/ingress-nginx"

- name: Install ingress-nginx
  kubernetes.core.helm:
    binary_path: /usr/local/bin/helm
    name: nginx-ingress
    chart_ref: ingress-nginx/ingress-nginx
    release_namespace: ingress-nginx
    update_repo_cache: true
    create_namespace: true

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)