Traefik configuration

TraefikでLogging/Proxy-Protocol/http-redirectの設定を追加する。

Helm Upgrade用のマニフェスト作成。

ports:
  web:
    proxyProtocol:
      trustedIPs: ["127.0.0.1/32", "45.76.55.0/24"]
      insecure: false
    redirectTo:
      port: websecure
  websecure:
    proxyProtocol:
      trustedIPs: ["127.0.0.1/32", "45.76.55.0/24"]
      insecure: false

logs:
  access:
    # -- To enable access logs
    enabled: true

service:
  enabled: true
  type: LoadBalancer
  annotations:
    # Enable proxy protocol
    service.beta.kubernetes.io/vultr-loadbalancer-proxy-protocol: "true"

proxyProtocol.trustedIPsにはnodeの外部IPアドレス等を指定する。

helm upgradeする。

helm upgrade -n traefik traefik traefik/traefik -f traefik-helm-values.yaml

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です