Some checks reported errors
continuous-integration/drone/push Build encountered an error
108 lines
2.5 KiB
Django/Jinja
108 lines
2.5 KiB
Django/Jinja
# https://github.com/traefik/traefik-helm-chart/blob/master/traefik/values.yaml
|
|
{% if traefik_version is defined %}
|
|
image:
|
|
tag: "{{ traefik_version }}"
|
|
{% endif %}
|
|
#fullnameOverride: "{{ my_context }}"
|
|
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
|
|
{% if false %}
|
|
autoscaling:
|
|
enabled: true
|
|
minReplicas: 1
|
|
maxReplicas: 10
|
|
metrics:
|
|
- type: Resource
|
|
resource:
|
|
name: cpu
|
|
targetAverageUtilization: 60
|
|
- type: Resource
|
|
resource:
|
|
name: memory
|
|
targetAverageUtilization: 60
|
|
{% endif %}
|
|
{% if traefik_service_type == "NodePort" or (traefik_hostport is defined and traefik_hostport == true) or traefik_hub_token is defined %}
|
|
ports:
|
|
{% if traefik_service_type == "NodePort" or (traefik_hostport is defined and traefik_hostport == true) %}
|
|
web:
|
|
# redirectTo: websecure
|
|
{% if traefik_hostport is defined and traefik_hostport == true %}
|
|
hostPort: 80
|
|
{% endif %}
|
|
{% if traefik_service_type == "NodePort" %}
|
|
nodePort: 80
|
|
{% endif %}
|
|
websecure:
|
|
{% if traefik_hostport is defined and traefik_hostport == true %}
|
|
hostPort: 443
|
|
{% endif %}
|
|
{% if traefik_service_type == "NodePort" %}
|
|
nodePort: 443
|
|
{% endif %}
|
|
http3:
|
|
enabled: true
|
|
advertisedPort: 443
|
|
# tls:
|
|
# enabled: true
|
|
# options: default
|
|
{% endif %}
|
|
{% if traefik_hub_token is defined %}
|
|
traefikhub-tunl:
|
|
port: 9901
|
|
expose: true
|
|
exposedPort: 9901
|
|
protocol: "TCP"
|
|
{% endif %}
|
|
{% 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:
|
|
{% if traefik_hostport is defined and traefik_hostport == true %}
|
|
kind: DaemonSet
|
|
{% else %}
|
|
replicas: 1
|
|
{% endif %}
|
|
revisionHistoryLimit: 3
|
|
podAnnotations:
|
|
prometheus.io/port: '9100'
|
|
prometheus.io/scrape: 'true'
|
|
{% if traefik_hostport is defined and traefik_hostport == true %}
|
|
updateStrategy:
|
|
type: OnDelete
|
|
{% endif %}
|
|
experimental:
|
|
plugins:
|
|
enabled: true
|
|
kubernetesGateway:
|
|
enabled: false
|
|
{% if traefik_hub_token is defined %}
|
|
hub:
|
|
enabled: true
|
|
{% endif %}
|