mirror of
https://github.com/flant/ovpn-admin.git
synced 2025-12-13 04:16:14 -08:00
33 lines
808 B
YAML
33 lines
808 B
YAML
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ovpn-admin
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
|
nginx.ingress.kubernetes.io/auth-type: basic
|
|
nginx.ingress.kubernetes.io/auth-realm: "Authentication Required"
|
|
nginx.ingress.kubernetes.io/auth-secret: basic-auth
|
|
{{- with .Values.ingress.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- with .Values.ingress.className }}
|
|
ingressClassName: {{ . | quote }}
|
|
{{- end }}
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.ingress.domain }}
|
|
secretName: ingress-tls
|
|
rules:
|
|
- host: {{ .Values.ingress.domain }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: ovpn-admin
|
|
port:
|
|
name: http
|