Skip to content

Instantly share code, notes, and snippets.

@burakince
burakince / ingress.yaml
Last active March 16, 2022 13:20 — forked from nezed/ingress.yaml
Helm basic auth with Kubernetes Ingress
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: my-basic-auth
nginx.ingress.kubernetes.io/auth-realm: "Authentication Required - ok"
name: my-ingress
spec:
rules: