Files
helm-charts-hardened/charts/spire/templates/oidc-ingress.yaml
T
2023-02-18 13:04:00 +01:00

31 lines
912 B
YAML

{{- if and (eq (.Values.oidc.enabled | toString) "true") (eq (.Values.oidc.ingress.enabled | toString) "true") }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "spire.fullname" . }}-oidc-ingress
namespace: spire
spec:
tls:
- hosts:
- {{ .Values.oidc.ingress.domain }}
secretName: oidc-secret
rules:
- host: {{ .Values.oidc.ingress.domain }}
http:
paths:
- path: /.well-known/openid-configuration
pathType: ImplementationSpecific
backend:
service:
name: {{ include "spire.fullname" . }}-oidc
port:
name: http
- path: /keys
pathType: ImplementationSpecific
backend:
service:
name: {{ include "spire.fullname" . }}-oidc
port:
name: http
{{ end }}