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 my_context: kubernetes
traefik_version: "2.9.5" traefik_version: "2.10.1"
cluster_domain: "local" cluster_domain: "local"
traefik_namespace: "traefik" traefik_namespace: "traefik"
traefik_service_type: LoadBalancer traefik_service_type: LoadBalancer

View file

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

View file

@ -40,16 +40,24 @@ autoscaling:
name: memory name: memory
targetAverageUtilization: 60 targetAverageUtilization: 60
{% endif %} {% 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: ports:
{% if traefik_service_type == "NodePort" and false %} {% if traefik_service_type == "NodePort" or (traefik_hostport is defined and traefik_hostport == true) %}
web: web:
# redirectTo: websecure # redirectTo: websecure
# hostPort: 80 {% if traefik_hostport is defined and traefik_hostport == true %}
hostPort: 80
{% endif %}
{% if traefik_service_type == "NodePort" %}
nodePort: 80 nodePort: 80
{% endif %}
websecure: websecure:
# hostPort: 443 {% if traefik_hostport is defined and traefik_hostport == true %}
hostPort: 443
{% endif %}
{% if traefik_service_type == "NodePort" %}
nodePort: 443 nodePort: 443
{% endif %}
# tls: # tls:
# enabled: true # enabled: true
# options: default # options: default
@ -73,10 +81,19 @@ volumes:
name: basic-auth name: basic-auth
type: secret type: secret
deployment: deployment:
{% if traefik_hostport is defined and traefik_hostport == true %}
kind: DaemonSet
{% else %}
replicas: 1 replicas: 1
{% endif %}
revisionHistoryLimit: 3
podAnnotations: podAnnotations:
prometheus.io/port: '9100' prometheus.io/port: '9100'
prometheus.io/scrape: 'true' prometheus.io/scrape: 'true'
{% if traefik_hostport is defined and traefik_hostport == true %}
updateStrategy:
type: OnDelete
{% endif %}
experimental: experimental:
http3: http3:
enabled: true enabled: true