Ingress API key
Let’s say you just wanted to have a simple API-key for your nginx ingress. The if structures in nginx configs are an interesting way to do this. There might be more effecient ways to do this, but for now this will do. Example example-ingress.yaml: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: some-ingress annotations: nginx.ingress.kubernetes.io/use-regex: "true" nginx.ingress.kubernetes.io/configuration-snippet: |if ($arg_api_key != 'yourVerySecretKey') { return 401 'Access denied!'; } if ($http_x_api_key != 'yourVerySecretKey') { return 401 'Access denied!...