ansible-role-k8s-traefik/templates/traefik-helm-value.yaml.j2
Adrien Reslinger 736ac64ff0
All checks were successful
continuous-integration/drone/push Build is passing
Add test with nodeports
2022-05-10 00:35:31 +02:00

65 lines
No EOL
1.4 KiB
Django/Jinja

# https://github.com/traefik/traefik-helm-chart/blob/master/traefik/values.yaml
#image:
# tag: "{{ traefik_version }}"
additionalArguments:
- --configFile=/etc/traefik/traefik.yaml
#podSecurityPolicy:
# enabled: true
service:
type: {{ traefik_service_type }}
{% if traefik_external_ips is defined %}
externalIPs:
{% for external_ip in traefik_external_ips %}
- {{ external_ip }}
{% endfor %}
{% endif %}
ingressRoute:
dashboard:
enabled: false
podDisruptionBudget:
enabled: true
minAvailable: 1
ingressClass:
enabled: true
isDefaultClass: true
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 60
- type: Resource
resource:
name: memory
targetAverageUtilization: 60
{% if traefik_service_type == "NodePort" and false %}
ports:
web:
# redirectTo: websecure
# hostPort: 80
nodePort: 80
websecure:
# hostPort: 443
nodePort: 443
# tls:
# enabled: true
# options: default
{% endif %}
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'