Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions chart/templates/authentik/redis-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{{- if .Values.authentik.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "ok8s.fullname" . }}-authentik-redis
labels:
app.kubernetes.io/name: redis
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
Comment thread
timothyclin marked this conversation as resolved.
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: redis
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
app.kubernetes.io/name: redis
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
containers:
- name: redis
image: "{{ .Values.authentik.redis.image.repository }}:{{ .Values.authentik.redis.image.tag }}"
command: ["redis-server", "--requirepass", "$(REDIS_PASSWORD)"]
env:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "ok8s.fullname" . }}-authentik-redis
key: password
ports:
- containerPort: 6379
resources: {{ toYaml .Values.authentik.redis.resources | nindent 10 }}
{{- end }}
13 changes: 13 additions & 0 deletions chart/templates/authentik/redis-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{- if .Values.authentik.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "ok8s.fullname" . }}-authentik-redis
Comment thread
timothyclin marked this conversation as resolved.
spec:
ports:
- port: 6379
targetPort: 6379
selector:
app.kubernetes.io/name: redis
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
34 changes: 34 additions & 0 deletions chart/templates/authentik/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{{- if .Values.authentik.enabled }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "ok8s.fullname" . }}-authentik
type: Opaque
Comment thread
timothyclin marked this conversation as resolved.
data:
# Authentik secret key for encryption
secretKey: {{ randAlphaNum 32 | b64enc }}
# PostgreSQL password
Comment thread
timothyclin marked this conversation as resolved.
postgresPassword: {{ .Values.authentik.postgres.password | b64enc }}
# Redis password
redisPassword: {{ .Values.authentik.redis.password | b64enc }}
Comment thread
timothyclin marked this conversation as resolved.
# OIDC client secret (if provided)
{{- if .Values.authentik.oidc.clientSecret }}
oidcClientSecret: {{ .Values.authentik.oidc.clientSecret | b64enc }}
{{- end }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "ok8s.fullname" . }}-authentik-postgres
type: Opaque
data:
password: {{ .Values.authentik.postgres.password | b64enc }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "ok8s.fullname" . }}-authentik-redis
type: Opaque
data:
password: {{ .Values.authentik.redis.password | b64enc }}
{{- end }}
39 changes: 39 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,42 @@ kubedock:
DOCKER_HOST: "tcp://kubedock-service:2475"
TESTCONTAINERS_RYUK_DISABLED: "true"
TESTCONTAINERS_CHECKS_DISABLE: "true"

# -- Authentik identity provider configuration
authentik:
enabled: false
# -- CRITICAL: Authentik secret key used for encryption. MUST be set to a cryptographically strong random string (at least 32 characters).
# Generate with: openssl rand -base64 32
# This value cannot be empty and must be unique per installation.
secretKey: ""
postgres:
image:
repository: postgres
tag: "15-alpine"
database: "authentik"
username: "authentik"
password: "change-me-in-production"
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
persistence:
enabled: true
size: 10Gi
redis:
image:
repository: redis
tag: "7-alpine"
password: "change-me-in-production"
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
oidc:
clientSecret: ""
Loading
Loading