Helm chart + Ansible role для Authelia 4.38: - Forward-auth для ingress-nginx через аннотации auth-url/auth-signin - OIDC provider: Gitea, Grafana, ArgoCD, MinIO, Vault, Nextcloud - SQLite default или PostgreSQL; опциональный Redis для сессий - RSA ключ OIDC генерируется автоматически если не задан в vault - ConfigMap authelia-forward-auth с готовыми аннотациями для любого сервиса - README: install, users, protect service, OIDC per-service, debug, test
65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
{{- if .Values.redis.enabled }}
|
|
---
|
|
# Redis Deployment — session storage for Authelia (optional but recommended)
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "authelia.name" . }}-redis
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "authelia.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: redis
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
{{- include "authelia.selectorLabels" . | nindent 6 }}
|
|
app.kubernetes.io/component: redis
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{- include "authelia.selectorLabels" . | nindent 8 }}
|
|
app.kubernetes.io/component: redis
|
|
spec:
|
|
containers:
|
|
- name: redis
|
|
image: {{ .Values.redis.image }}
|
|
imagePullPolicy: IfNotPresent
|
|
command:
|
|
- redis-server
|
|
- --save ""
|
|
- --appendonly no
|
|
ports:
|
|
- name: redis
|
|
containerPort: 6379
|
|
protocol: TCP
|
|
resources:
|
|
{{- toYaml .Values.redis.resources | nindent 12 }}
|
|
readinessProbe:
|
|
exec:
|
|
command: [redis-cli, ping]
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "authelia.name" . }}-redis
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "authelia.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: redis
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
{{- include "authelia.selectorLabels" . | nindent 4 }}
|
|
app.kubernetes.io/component: redis
|
|
ports:
|
|
- name: redis
|
|
port: 6379
|
|
targetPort: 6379
|
|
protocol: TCP
|
|
{{- end }}
|