Fix hostport deployment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2023-06-23 17:09:22 +02:00
parent 2a2161a25d
commit 23e0c8a91e
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
3 changed files with 23 additions and 6 deletions

View file

@ -1,5 +1,5 @@
my_context: kubernetes
traefik_version: "2.9.5"
traefik_version: "2.10.1"
cluster_domain: "local"
traefik_namespace: "traefik"
traefik_service_type: LoadBalancer

View file

@ -41,7 +41,7 @@ data:
stsPreload: true
customFrameOptionsValue: "SAMEORIGIN"
referrerPolicy: "same-origin"
permissionsPolicy: "vibrate 'self'"
# permissionsPolicy: "vibrate 'self'"
permissionsPolicy: "camera 'none'; microphone 'none'; geolocation 'none'; payment 'none';"
stsSeconds: 315360000
# contentSecurityPolicy: "default-src 'self' 'unsafe-inline'"

View file

@ -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