added core service ingress support
This commit is contained in:
1 parent
299df8f81f
commit
5e33ddfb4a
3 files changed
+22
-35
No files matched your search
@@ -32,9 +32,18 @@ spec:
|
||||
data:
|
||||
- secretKey: tls.crt
|
||||
remoteRef:
|
||||
{{ if hasSuffix ".core" .prefix }}
|
||||
key: cloudflare-wildcard.core.{{ .global.domain }}
|
||||
{{ else }}
|
||||
key: cloudflare-wildcard.{{ .global.domain }}
|
||||
{{ end }}
|
||||
property: tls.crt
|
||||
- secretKey: tls.key
|
||||
{{ if hasSuffix ".core" .prefix }}
|
||||
key: cloudflare-wildcard.core.{{ .global.domain }}
|
||||
{{ else }}
|
||||
key: cloudflare-wildcard.{{ .global.domain }}
|
||||
{{ end }}
|
||||
remoteRef:
|
||||
key: cloudflare-wildcard.{{ .global.domain }}
|
||||
property: tls.key
|
||||
|
||||
@@ -48,6 +48,19 @@ spec:
|
||||
commonName: '*.{{ .Values.global.domain }}'
|
||||
dnsNames:
|
||||
- "*.{{ .Values.global.domain }}"
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: cloudflare-wildcard.core.{{ .Values.global.domain }}
|
||||
spec:
|
||||
secretName: cloudflare-wildcard.core.{{ .Values.global.domain }}
|
||||
issuerRef:
|
||||
name: cloudflare
|
||||
kind: Issuer
|
||||
commonName: '*.{{ .Values.global.domain }}'
|
||||
dnsNames:
|
||||
- "*.{{ .Values.global.domain }}"
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@@ -23,41 +23,6 @@ spec:
|
||||
stsPreload: true
|
||||
forceSTSHeader: true
|
||||
---
|
||||
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: chain-authelia
|
||||
namespace: "{{ .Release.Namespace }}"
|
||||
spec:
|
||||
chain:
|
||||
middlewares:
|
||||
- name: https-redirect
|
||||
namespace: "{{ .Release.Namespace }}"
|
||||
- name: forwardauth-authelia
|
||||
namespace: "{{ .Release.Namespace }}"
|
||||
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: forwardauth-authelia
|
||||
namespace: "{{ .Release.Namespace }}"
|
||||
labels:
|
||||
app.kubernetes.io/instance: authelia
|
||||
app.kubernetes.io/name: authelia
|
||||
spec:
|
||||
forwardAuth:
|
||||
address: http://main-authelia.apps-authelia.svc.cluster.local/api/verify?rd=https%3A%2F%2Fauth.core.{{.Values.global.domain}}%2F
|
||||
authResponseHeaders:
|
||||
- Remote-User
|
||||
- Remote-Name
|
||||
- Remote-Email
|
||||
- Remote-Groups
|
||||
|
||||
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
|
||||
Reference in new issue
Block a user