fix
This commit is contained in:
@@ -8,6 +8,9 @@ locals {
|
|||||||
"app.kubernetes.io/name" = var.component
|
"app.kubernetes.io/name" = var.component
|
||||||
"app.kubernetes.io/instance" = var.instance
|
"app.kubernetes.io/instance" = var.instance
|
||||||
}
|
}
|
||||||
|
server-annotations = (var.customisation.configmap_name!="" && (var.customisation.use_icon_left || var.customisation.use_custom_css))?{
|
||||||
|
"configmap.reloader.stakater.com/reload" = var.customisation.configmap_name
|
||||||
|
}:{}
|
||||||
}
|
}
|
||||||
|
|
||||||
data "kustomization_overlay" "data" {
|
data "kustomization_overlay" "data" {
|
||||||
@@ -51,6 +54,7 @@ data "kustomization_overlay" "data" {
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: authentik-server
|
name: authentik-server
|
||||||
|
annotations: ${jsonencode(local.server-annotations)}
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -6,16 +6,41 @@ metadata:
|
|||||||
name: authentik
|
name: authentik
|
||||||
description: authentik is an open-source Identity Provider focused on flexibility and versatility
|
description: authentik is an open-source Identity Provider focused on flexibility and versatility
|
||||||
options:
|
options:
|
||||||
admin:
|
loglevel:
|
||||||
default:
|
default: info
|
||||||
email: auth-admin
|
|
||||||
examples:
|
examples:
|
||||||
- email: auth-admin
|
- info
|
||||||
properties:
|
|
||||||
email:
|
|
||||||
default: auth-admin
|
|
||||||
type: string
|
type: string
|
||||||
|
email:
|
||||||
|
default:
|
||||||
|
port: 587
|
||||||
|
timeout: 30
|
||||||
|
use_ssl: false
|
||||||
|
use_tls: false
|
||||||
|
examples:
|
||||||
|
- port: 587
|
||||||
|
timeout: 30
|
||||||
|
use_ssl: false
|
||||||
|
use_tls: false
|
||||||
|
properties:
|
||||||
|
port:
|
||||||
|
default: 587
|
||||||
|
type: integer
|
||||||
|
timeout:
|
||||||
|
default: 30
|
||||||
|
type: integer
|
||||||
|
use_ssl:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
use_tls:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
|
sub_domain:
|
||||||
|
default: auth
|
||||||
|
examples:
|
||||||
|
- auth
|
||||||
|
type: string
|
||||||
error_reporting:
|
error_reporting:
|
||||||
default:
|
default:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -36,74 +61,25 @@ options:
|
|||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
backups:
|
admin:
|
||||||
default:
|
default:
|
||||||
enable: false
|
email: auth-admin
|
||||||
endpoint: ''
|
|
||||||
key_id_key: s3-id
|
|
||||||
retention:
|
|
||||||
db: 30d
|
|
||||||
schedule:
|
|
||||||
db: 0 3 * * *
|
|
||||||
secret_key: s3-secret
|
|
||||||
secret_name: backup-settings
|
|
||||||
use_barman: false
|
|
||||||
examples:
|
examples:
|
||||||
- enable: false
|
- email: auth-admin
|
||||||
endpoint: ''
|
|
||||||
key_id_key: s3-id
|
|
||||||
retention:
|
|
||||||
db: 30d
|
|
||||||
schedule:
|
|
||||||
db: 0 3 * * *
|
|
||||||
secret_key: s3-secret
|
|
||||||
secret_name: backup-settings
|
|
||||||
use_barman: false
|
|
||||||
properties:
|
properties:
|
||||||
enable:
|
email:
|
||||||
default: false
|
default: auth-admin
|
||||||
type: boolean
|
|
||||||
endpoint:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
key_id_key:
|
|
||||||
default: s3-id
|
|
||||||
type: string
|
|
||||||
retention:
|
|
||||||
default:
|
|
||||||
db: 30d
|
|
||||||
properties:
|
|
||||||
db:
|
|
||||||
default: 30d
|
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
schedule:
|
domain:
|
||||||
default:
|
default: your-company
|
||||||
db: 0 3 * * *
|
|
||||||
properties:
|
|
||||||
db:
|
|
||||||
default: 0 3 * * *
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
secret_key:
|
|
||||||
default: s3-secret
|
|
||||||
type: string
|
|
||||||
secret_name:
|
|
||||||
default: backup-settings
|
|
||||||
type: string
|
|
||||||
use_barman:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
ingress_class:
|
|
||||||
default: traefik
|
|
||||||
examples:
|
examples:
|
||||||
- traefik
|
- your-company
|
||||||
type: string
|
type: string
|
||||||
sub_domain:
|
geoip:
|
||||||
default: auth
|
default: /geoip/GeoLite2-City.mmdb
|
||||||
examples:
|
examples:
|
||||||
- auth
|
- /geoip/GeoLite2-City.mmdb
|
||||||
type: string
|
type: string
|
||||||
images:
|
images:
|
||||||
default:
|
default:
|
||||||
@@ -272,10 +248,20 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
domain_name:
|
postgres:
|
||||||
default: your_company.com
|
default:
|
||||||
|
replicas: 1
|
||||||
examples:
|
examples:
|
||||||
- your_company.com
|
- replicas: 1
|
||||||
|
properties:
|
||||||
|
replicas:
|
||||||
|
default: 1
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
ingress_class:
|
||||||
|
default: traefik
|
||||||
|
examples:
|
||||||
|
- traefik
|
||||||
type: string
|
type: string
|
||||||
redis:
|
redis:
|
||||||
default:
|
default:
|
||||||
@@ -294,76 +280,6 @@ options:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
postgres:
|
|
||||||
default:
|
|
||||||
replicas: 1
|
|
||||||
examples:
|
|
||||||
- replicas: 1
|
|
||||||
properties:
|
|
||||||
replicas:
|
|
||||||
default: 1
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
customisation:
|
|
||||||
default:
|
|
||||||
configmap_name: ''
|
|
||||||
use_custom_css: false
|
|
||||||
use_icon_left: false
|
|
||||||
examples:
|
|
||||||
- configmap_name: ''
|
|
||||||
use_custom_css: false
|
|
||||||
use_icon_left: false
|
|
||||||
properties:
|
|
||||||
configmap_name:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
use_custom_css:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
use_icon_left:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
email:
|
|
||||||
default:
|
|
||||||
port: 587
|
|
||||||
timeout: 30
|
|
||||||
use_ssl: false
|
|
||||||
use_tls: false
|
|
||||||
examples:
|
|
||||||
- port: 587
|
|
||||||
timeout: 30
|
|
||||||
use_ssl: false
|
|
||||||
use_tls: false
|
|
||||||
properties:
|
|
||||||
port:
|
|
||||||
default: 587
|
|
||||||
type: integer
|
|
||||||
timeout:
|
|
||||||
default: 30
|
|
||||||
type: integer
|
|
||||||
use_ssl:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
use_tls:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
loglevel:
|
|
||||||
default: info
|
|
||||||
examples:
|
|
||||||
- info
|
|
||||||
type: string
|
|
||||||
storage:
|
storage:
|
||||||
default:
|
default:
|
||||||
postgres:
|
postgres:
|
||||||
@@ -393,11 +309,95 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
geoip:
|
backups:
|
||||||
default: /geoip/GeoLite2-City.mmdb
|
default:
|
||||||
|
enable: false
|
||||||
|
endpoint: ''
|
||||||
|
key_id_key: s3-id
|
||||||
|
retention:
|
||||||
|
db: 30d
|
||||||
|
schedule:
|
||||||
|
db: 0 3 * * *
|
||||||
|
secret_key: s3-secret
|
||||||
|
secret_name: backup-settings
|
||||||
|
use_barman: false
|
||||||
examples:
|
examples:
|
||||||
- /geoip/GeoLite2-City.mmdb
|
- enable: false
|
||||||
|
endpoint: ''
|
||||||
|
key_id_key: s3-id
|
||||||
|
retention:
|
||||||
|
db: 30d
|
||||||
|
schedule:
|
||||||
|
db: 0 3 * * *
|
||||||
|
secret_key: s3-secret
|
||||||
|
secret_name: backup-settings
|
||||||
|
use_barman: false
|
||||||
|
properties:
|
||||||
|
enable:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
endpoint:
|
||||||
|
default: ''
|
||||||
type: string
|
type: string
|
||||||
|
key_id_key:
|
||||||
|
default: s3-id
|
||||||
|
type: string
|
||||||
|
retention:
|
||||||
|
default:
|
||||||
|
db: 30d
|
||||||
|
properties:
|
||||||
|
db:
|
||||||
|
default: 30d
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
schedule:
|
||||||
|
default:
|
||||||
|
db: 0 3 * * *
|
||||||
|
properties:
|
||||||
|
db:
|
||||||
|
default: 0 3 * * *
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
secret_key:
|
||||||
|
default: s3-secret
|
||||||
|
type: string
|
||||||
|
secret_name:
|
||||||
|
default: backup-settings
|
||||||
|
type: string
|
||||||
|
use_barman:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
domain_name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
|
issuer:
|
||||||
|
default: letsencrypt-prod
|
||||||
|
examples:
|
||||||
|
- letsencrypt-prod
|
||||||
|
type: string
|
||||||
|
customisation:
|
||||||
|
default:
|
||||||
|
configmap_name: ''
|
||||||
|
use_custom_css: false
|
||||||
|
use_icon_left: false
|
||||||
|
examples:
|
||||||
|
- configmap_name: ''
|
||||||
|
use_custom_css: false
|
||||||
|
use_icon_left: false
|
||||||
|
properties:
|
||||||
|
configmap_name:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
use_custom_css:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
use_icon_left:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
dependencies:
|
dependencies:
|
||||||
- dist: null
|
- dist: null
|
||||||
category: core
|
category: core
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ resource "kubectl_manifest" "pre_backup_sa" {
|
|||||||
metadata:
|
metadata:
|
||||||
name: backup-secret
|
name: backup-secret
|
||||||
namespace: "${var.namespace}"
|
namespace: "${var.namespace}"
|
||||||
|
labels: ${jsonencode(local.secrets-labels)}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
resource "kubectl_manifest" "pre_backup_role" {
|
resource "kubectl_manifest" "pre_backup_role" {
|
||||||
@@ -49,6 +50,7 @@ resource "kubectl_manifest" "pre_backup_role" {
|
|||||||
metadata:
|
metadata:
|
||||||
name: backup-secret
|
name: backup-secret
|
||||||
namespace: "${var.namespace}"
|
namespace: "${var.namespace}"
|
||||||
|
labels: ${jsonencode(local.secrets-labels)}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
@@ -68,6 +70,7 @@ resource "kubectl_manifest" "pre_backup_rb" {
|
|||||||
metadata:
|
metadata:
|
||||||
name: backup-secret
|
name: backup-secret
|
||||||
namespace: "${var.namespace}"
|
namespace: "${var.namespace}"
|
||||||
|
labels: ${jsonencode(local.secrets-labels)}
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: Role
|
kind: Role
|
||||||
@@ -87,6 +90,7 @@ resource "kubectl_manifest" "pre_backup_pod" {
|
|||||||
metadata:
|
metadata:
|
||||||
name: secret
|
name: secret
|
||||||
namespace: "${var.namespace}"
|
namespace: "${var.namespace}"
|
||||||
|
labels: ${jsonencode(local.secrets-labels)}
|
||||||
spec:
|
spec:
|
||||||
backupCommand: kubectl get secrets -o yaml -l k8up.io/backup=true
|
backupCommand: kubectl get secrets -o yaml -l k8up.io/backup=true
|
||||||
pod:
|
pod:
|
||||||
|
|||||||
Reference in New Issue
Block a user