FEAT: more compact helm chart definition

omit separate helm_repo variable
This commit is contained in:
Sebastian Mark 2022-02-07 10:57:09 +01:00
parent 96ffe5f23d
commit 403082c266
2 changed files with 20 additions and 22 deletions

View file

@ -8,9 +8,9 @@
include_vars: helm.yml
- name: add chart repos
kubernetes.core.helm_repository:
name: "{{ item.repo }}"
name: "{{ item.chart.split('/')[0] }}"
repo_url: "{{ item.url }}"
loop: "{{ helm_repos }}"
loop: "{{ helm_charts }}"
- name: update helm repos
command: helm repo update
changed_when: no

View file

@ -1,16 +1,9 @@
---
helm_repos:
- { repo: argocd, url: https://argoproj.github.io/argo-helm }
- { repo: bitnami, url: https://charts.bitnami.com/bitnami }
- { repo: ingress-nginx, url: https://kubernetes.github.io/ingress-nginx }
- { repo: jetstack, url: https://charts.jetstack.io }
- { repo: keel, url: https://charts.keel.sh }
- { repo: prometheus-community, url: https://prometheus-community.github.io/helm-charts }
helm_charts:
- chart: ingress-nginx/ingress-nginx
name: ingress-nginx
- name: ingress-nginx
chart: ingress-nginx/ingress-nginx
url: https://kubernetes.github.io/ingress-nginx
vals:
controller:
image:
@ -24,27 +17,31 @@ helm_charts:
additionalLabels:
release: monitoring # same as prometheus-community chart name
- chart: jetstack/cert-manager
name: cert-manager
- name: cert-manager
url: https://charts.jetstack.io
chart: jetstack/cert-manager
vals:
installCRDs: true
- chart: argocd/argo-cd
name: argocd
- name: argocd
chart: argocd/argo-cd
url: https://argoproj.github.io/argo-helm
vals:
server:
replicas: 0
dex:
enabled: false
- chart: keel/keel
name: keel
- name: keel
url: https://charts.keel.sh
chart: keel/keel
vals:
helmProvider:
enabled: false
- chart: bitnami/metrics-server
name: metrics-server
- name: metrics-server
url: https://charts.bitnami.com/bitnami
chart: bitnami/metrics-server
namespace: metrics
version: 5.8.8
vals:
@ -54,8 +51,9 @@ helm_charts:
kubelet-insecure-tls: true
kubelet-preferred-address-types: InternalIP
- chart: prometheus-community/kube-prometheus-stack
name: monitoring
- name: monitoring
url: https://prometheus-community.github.io/helm-charts
chart: prometheus-community/kube-prometheus-stack
namespace: metrics
vals:
alertmanager: