Fix hostport deployment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2a2161a25d
commit
23e0c8a91e
3 changed files with 23 additions and 6 deletions
|
|
@ -40,16 +40,24 @@ autoscaling:
|
|||
name: memory
|
||||
targetAverageUtilization: 60
|
||||
{% endif %}
|
||||
{% if traefik_service_type == "NodePort" or traefik_hub_token is defined %}
|
||||
{% 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" and false %}
|
||||
{% if traefik_service_type == "NodePort" or (traefik_hostport is defined and traefik_hostport == true) %}
|
||||
web:
|
||||
# redirectTo: websecure
|
||||
# hostPort: 80
|
||||
{% if traefik_hostport is defined and traefik_hostport == true %}
|
||||
hostPort: 80
|
||||
{% endif %}
|
||||
{% if traefik_service_type == "NodePort" %}
|
||||
nodePort: 80
|
||||
{% endif %}
|
||||
websecure:
|
||||
# hostPort: 443
|
||||
{% if traefik_hostport is defined and traefik_hostport == true %}
|
||||
hostPort: 443
|
||||
{% endif %}
|
||||
{% if traefik_service_type == "NodePort" %}
|
||||
nodePort: 443
|
||||
{% endif %}
|
||||
# tls:
|
||||
# enabled: true
|
||||
# options: default
|
||||
|
|
@ -73,10 +81,19 @@ volumes:
|
|||
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:
|
||||
http3:
|
||||
enabled: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue