No description
Find a file
2022-02-03 08:30:12 +01:00
files FEAT: replace bitnami prometheus/grafana chart with prometheus-community 2021-12-05 00:21:31 +01:00
vars BREAK: rename group_vars/all.yml -> vars/helm.yml 2022-01-02 20:22:04 +01:00
baseline.yml FEAT: include all k8s manifests in files/ 2022-01-02 20:22:22 +01:00
INSTALL.md DOC: add INSTALL.md 2021-12-14 14:36:47 +01:00
logo.png FEAT: add logo 2021-11-30 14:49:29 +01:00
README.md DOC: fix typos and syntax 2022-02-03 08:30:12 +01:00

Kubernetes Baseline

Notes

Linode

PROXY protocol needs to be enabled for ingress-nginx to see the clients IP in ingress log.

Add the PROXY protocol annotation to the ingress-nginx service:

annotations:
    service.beta.kubernetes.io/linode-loadbalancer-proxy-protocol: v2

Update the ingress-nginx ConfigMap to make nginx expect PROXY protocol data:

data:
  use-proxy-protocol: "true"

cert-manager

However, when you have the PROXY protocol enabled, the external load balancer does modify the traffic, prepending the PROXY line before each TCP connection. If you connect directly to the web server internally, bypassing the external load balancer, then it will receive traffic without the PROXY line.

This is particularly a problem when using cert-manager for provisioning SSL certificates.

After enabling the PROXY protocol cert-manager is unable to perform a self check ("propagation check failed", "failed to perform self check GET request").

hairpin-proxy adds PROXY protocol support for internal-to-LoadBalancer traffic for Kubernetes Ingress users, specifically for cert-manager self-checks (no further configuration needed).