Use helm template values file

This commit is contained in:
Adrien Reslinger 2022-02-25 00:38:43 +01:00
parent b3df6499f3
commit a722a1d783
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
2 changed files with 64 additions and 40 deletions

View file

@ -84,45 +84,7 @@
name: traefik
chart_ref: traefik/traefik
release_namespace: "{{ traefik_namespace }}"
values:
image:
tag: "{{ traefik_version }}"
additionalArguments:
- --configFile=/etc/traefik/traefik.yaml
# podSecurityPolicy:
# enabled: true
service:
enabled: false
ingressRoute:
dashboard:
enabled: false
ingressClass:
enabled: true
isDefaultClass: true
# ports:
# web:
# redirectTo: websecure
# hostPort: 80
# websecure:
# hostPort: 443
# tls:
# enabled: true
# options: default
volumes:
- mountPath: /etc/traefik
name: traefik-conf
type: configMap
- mountPath: /etc/traefik/file
name: traefik-files
type: configMap
- mountPath: /etc/traefik/basic-auth
name: basic-auth
type: secret
deployment:
replicas: 1
podAnnotations:
prometheus.io/port: '9000'
prometheus.io/scrape: 'true'
values: "{{ lookup('template', 'traefik-helm-value.yaml.j2') | from_yaml }}"
- name: Install traefik configuration
k8s:
@ -139,6 +101,6 @@
- traefik-files.yml.j2
# - traefik-sa.yml.j2
- traefik-ingressroute.yml.j2
- traefik-svc.yml.j2
# - traefik-svc.yml.j2
tags: traefik