diff --git a/values/traefik.yaml b/values/traefik.yaml index 45b0948..ce754a5 100644 --- a/values/traefik.yaml +++ b/values/traefik.yaml @@ -6,17 +6,17 @@ image: rbac: enabled: true -#globalArguments: -# - "--global.checknewversion" -# - "--global.sendanonymoususage" -# - "--accesslog=true" -# - "--entryPoints.web.http.redirections.entryPoint.to=websecure" -# - "--entrypoints.web.http.redirections.entrypoint.scheme=https" -# - "--providers.kubernetescrd.allowCrossNamespace=true" -# - "--entryPoints.web.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32,10.124.0.0/16,127.0.0.1/32" -# - "--entryPoints.websecure.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32,10.124.0.0/16,127.0.0.1/32" -# - "--entryPoints.websecure.forwardedHeaders.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32" -# - "--entryPoints.mariadb.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP},10.124.0.0/16" +globalArguments: + - "--global.checknewversion" + - "--global.sendanonymoususage" + - "--accesslog=true" + - "--entryPoints.web.http.redirections.entryPoint.to=websecure" + - "--entrypoints.web.http.redirections.entrypoint.scheme=https" + - "--providers.kubernetescrd.allowCrossNamespace=true" + - "--entryPoints.web.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32,10.124.0.0/16,127.0.0.1/32" + - "--entryPoints.websecure.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32,10.124.0.0/16,127.0.0.1/32" + - "--entryPoints.websecure.forwardedHeaders.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32" + - "--entryPoints.mariadb.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP},10.124.0.0/16" additionalArguments: - "--serversTransport.insecureSkipVerify=true" @@ -28,17 +28,15 @@ ports: expose: false protocol: TCP web: - port: 80 -# redirectTo: -# port: websecure + redirectTo: + port: websecure websecure: - port: 443 -# port: 8443 -# expose: true -# exposedPort: 443 -# protocol: TCP -# tls: -# enabled: true + port: 8443 + expose: true + exposedPort: 443 + protocol: TCP + tls: + enabled: true metrics: port: 9100 expose: false @@ -68,12 +66,5 @@ service: #- 10.124.0.0/16 spec: loadBalancerIP: "${TRAEFIK_LOAD_BALANCER_IP}" - -securityContext: - capabilities: - drop: [ALL] - add: [NET_BIND_SERVICE] - readOnlyRootFilesystem: true - runAsGroup: 0 - runAsNonRoot: false - runAsUser: 0 + externalTrafficPolicy: Local + externalIPs: []