This commit is contained in:
2024-05-09 12:15:27 +02:00
parent 89c17cb483
commit 599d175f82
31 changed files with 830 additions and 866 deletions

View File

@@ -6,11 +6,36 @@ metadata:
name: code-server name: code-server
description: VS Code in the browser description: VS Code in the browser
options: options:
admin:
default:
cluster: false
namespace: false
examples:
- cluster: false
namespace: false
properties:
cluster:
default: false
type: boolean
namespace:
default: false
type: boolean
type: object
app_group: app_group:
default: dev default: dev
examples: examples:
- dev - dev
type: string type: string
domain:
default: your-company
examples:
- your-company
type: string
domain_name:
default: your-company.com
examples:
- your-company.com
type: string
images: images:
default: default:
codeserver: codeserver:
@@ -50,15 +75,10 @@ options:
type: string type: string
type: object type: object
type: object type: object
timezone: ingress_class:
default: Europe/Paris default: traefik
examples: examples:
- Europe/Paris - traefik
type: string
domain_name:
default: your-company.com
examples:
- your-company.com
type: string type: string
issuer: issuer:
default: letsencrypt-prod default: letsencrypt-prod
@@ -70,36 +90,6 @@ options:
examples: examples:
- false - false
type: boolean type: boolean
domain:
default: your-company
examples:
- your-company
type: string
sub_domain:
default: code
examples:
- code
type: string
ingress_class:
default: traefik
examples:
- traefik
type: string
admin:
default:
cluster: false
namespace: false
examples:
- cluster: false
namespace: false
properties:
cluster:
default: false
type: boolean
namespace:
default: false
type: boolean
type: object
storage: storage:
default: default:
volume: volume:
@@ -143,10 +133,17 @@ options:
type: string type: string
type: object type: object
type: object type: object
sub_domain:
default: code
examples:
- code
type: string
timezone:
default: Europe/Paris
examples:
- Europe/Paris
type: string
dependencies: dependencies:
- dist: null
category: share
component: authentik-forward
- dist: null - dist: null
category: core category: core
component: secret-generator component: secret-generator

View File

@@ -6,6 +6,70 @@ metadata:
name: dbgate name: dbgate
description: The Smartest SQL+noSQL Database Client description: The Smartest SQL+noSQL Database Client
options: options:
app_group:
default: dev
examples:
- dev
type: string
domain:
default: your-company
examples:
- your-company
type: string
domain_name:
default: your_company.com
examples:
- your_company.com
type: string
images:
default:
dbgate:
pull_policy: IfNotPresent
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.7-alpine
examples:
- dbgate:
pull_policy: IfNotPresent
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.7-alpine
properties:
dbgate:
default:
pull_policy: IfNotPresent
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.7-alpine
properties:
pull_policy:
default: IfNotPresent
enum:
- Always
- Never
- IfNotPresent
type: string
registry:
default: docker.io
type: string
repository:
default: dbgate/dbgate
type: string
tag:
default: 5.2.7-alpine
type: string
type: object
type: object
ingress_class:
default: traefik
examples:
- traefik
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
maria: maria:
default: [] default: []
examples: examples:
@@ -64,45 +128,49 @@ options:
type: string type: string
type: object type: object
type: array type: array
images: pg:
default: default: []
dbgate:
pull_policy: IfNotPresent
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.7-alpine
examples: examples:
- dbgate: - []
pull_policy: IfNotPresent items:
registry: docker.io properties:
repository: dbgate/dbgate dbname:
tag: 5.2.7-alpine default: ''
properties: type: string
dbgate: name:
default: default: ''
pull_policy: IfNotPresent type: string
registry: docker.io namespace:
repository: dbgate/dbgate default: ''
tag: 5.2.7-alpine type: string
properties: secret:
pull_policy: properties:
default: IfNotPresent key:
enum: default: ''
- Always type: string
- Never name:
- IfNotPresent default: ''
type: string type: string
registry: type: object
default: docker.io username:
type: string default: ''
repository: type: string
default: dbgate/dbgate type: object
type: string type: array
tag: redis:
default: 5.2.7-alpine default: []
type: string examples:
type: object - []
type: object items:
properties:
name:
default: ''
type: string
namespace:
default: ''
type: string
type: object
type: array
storage: storage:
default: default:
volume: volume:
@@ -146,79 +214,11 @@ options:
type: string type: string
type: object type: object
type: object type: object
ingress_class:
default: traefik
examples:
- traefik
type: string
domain_name:
default: your_company.com
examples:
- your_company.com
type: string
domain:
default: your-company
examples:
- your-company
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
sub_domain: sub_domain:
default: dbgate default: dbgate
examples: examples:
- dbgate - dbgate
type: string type: string
app_group:
default: dev
examples:
- dev
type: string
redis:
default: []
examples:
- []
items:
properties:
name:
default: ''
type: string
namespace:
default: ''
type: string
type: object
type: array
pg:
default: []
examples:
- []
items:
properties:
dbname:
default: ''
type: string
name:
default: ''
type: string
namespace:
default: ''
type: string
secret:
properties:
key:
default: ''
type: string
name:
default: ''
type: string
type: object
username:
default: ''
type: string
type: object
type: array
dependencies: dependencies:
- dist: null - dist: null
category: core category: core

View File

@@ -6,6 +6,147 @@ metadata:
name: dolibarr name: dolibarr
description: Open Source ERP & CRM for business description: Open Source ERP & CRM for business
options: options:
app_group:
default: ''
examples:
- ''
type: string
backups:
default:
enable: false
endpoint: ''
key_id_key: s3-id
restic_key: bck-password
retention:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
schedule:
backup: 20 3 * * *
check: 20 5 * * 1
db: 0 3 * * *
prune: 20 1 * * 0
secret_key: s3-secret
secret_name: backup-settings
use_barman: false
examples:
- enable: false
endpoint: ''
key_id_key: s3-id
restic_key: bck-password
retention:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
schedule:
backup: 20 3 * * *
check: 20 5 * * 1
db: 0 3 * * *
prune: 20 1 * * 0
secret_key: s3-secret
secret_name: backup-settings
use_barman: false
properties:
enable:
default: false
type: boolean
endpoint:
default: ''
type: string
key_id_key:
default: s3-id
type: string
restic_key:
default: bck-password
type: string
retention:
default:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
properties:
db:
default: 30d
type: string
keepDaily:
default: 14
type: integer
keepMonthly:
default: 12
type: integer
keepWeekly:
default: 6
type: integer
keepYearly:
default: 12
type: integer
type: object
schedule:
default:
backup: 20 3 * * *
check: 20 5 * * 1
db: 0 3 * * *
prune: 20 1 * * 0
properties:
backup:
default: 20 3 * * *
type: string
check:
default: 20 5 * * 1
type: string
db:
default: 0 3 * * *
type: string
prune:
default: 20 1 * * 0
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:
default: your-company
examples:
- your-company
type: string
domain_name:
default: your_company.com
examples:
- your_company.com
type: string
hpa:
default:
avg-cpu: 50
max-replicas: 5
min-replicas: 1
examples:
- avg-cpu: 50
max-replicas: 5
min-replicas: 1
properties:
avg-cpu:
default: 50
type: integer
max-replicas:
default: 5
type: integer
min-replicas:
default: 1
type: integer
type: object
images: images:
default: default:
dolibarr: dolibarr:
@@ -155,6 +296,107 @@ options:
type: string type: string
type: object type: object
type: object type: object
ingress_class:
default: traefik
examples:
- traefik
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
log-level:
default: 5
examples:
- 5
type: integer
modules:
default:
- societe
examples:
- - societe
items:
type: string
type: array
parameters:
default:
MAIN_LANG_DEFAULT: auto
examples:
- MAIN_LANG_DEFAULT: auto
properties:
MAIN_LANG_DEFAULT:
default: auto
type: string
type: object
postgres:
default:
replicas: 1
examples:
- replicas: 1
properties:
replicas:
default: 1
type: integer
type: object
redis:
default:
exporter:
enabled: true
examples:
- exporter:
enabled: true
properties:
exporter:
default:
enabled: true
properties:
enabled:
default: true
type: boolean
type: object
type: object
resources:
default:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 50m
memory: 100Mi
examples:
- limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 50m
memory: 100Mi
properties:
limits:
default:
cpu: 200m
memory: 256Mi
properties:
cpu:
default: 200m
type: string
memory:
default: 256Mi
type: string
type: object
requests:
default:
cpu: 50m
memory: 100Mi
properties:
cpu:
default: 50m
type: string
memory:
default: 100Mi
type: string
type: object
type: object
storage: storage:
default: default:
postgres: postgres:
@@ -222,179 +464,11 @@ options:
type: string type: string
type: object type: object
type: object type: object
hpa:
default:
avg-cpu: 50
max-replicas: 5
min-replicas: 1
examples:
- avg-cpu: 50
max-replicas: 5
min-replicas: 1
properties:
avg-cpu:
default: 50
type: integer
max-replicas:
default: 5
type: integer
min-replicas:
default: 1
type: integer
type: object
backups:
default:
enable: false
endpoint: ''
key_id_key: s3-id
restic_key: bck-password
retention:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
schedule:
backup: 20 3 * * *
check: 20 5 * * 1
db: 0 3 * * *
prune: 20 1 * * 0
secret_key: s3-secret
secret_name: backup-settings
use_barman: false
examples:
- enable: false
endpoint: ''
key_id_key: s3-id
restic_key: bck-password
retention:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
schedule:
backup: 20 3 * * *
check: 20 5 * * 1
db: 0 3 * * *
prune: 20 1 * * 0
secret_key: s3-secret
secret_name: backup-settings
use_barman: false
properties:
enable:
default: false
type: boolean
endpoint:
default: ''
type: string
key_id_key:
default: s3-id
type: string
restic_key:
default: bck-password
type: string
retention:
default:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
properties:
db:
default: 30d
type: string
keepDaily:
default: 14
type: integer
keepMonthly:
default: 12
type: integer
keepWeekly:
default: 6
type: integer
keepYearly:
default: 12
type: integer
type: object
schedule:
default:
backup: 20 3 * * *
check: 20 5 * * 1
db: 0 3 * * *
prune: 20 1 * * 0
properties:
backup:
default: 20 3 * * *
type: string
check:
default: 20 5 * * 1
type: string
db:
default: 0 3 * * *
type: string
prune:
default: 20 1 * * 0
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
redis:
default:
exporter:
enabled: true
examples:
- exporter:
enabled: true
properties:
exporter:
default:
enabled: true
properties:
enabled:
default: true
type: boolean
type: object
type: object
domain_name:
default: your_company.com
examples:
- your_company.com
type: string
app_group:
default: ''
examples:
- ''
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
sub_domain: sub_domain:
default: erp default: erp
examples: examples:
- erp - erp
type: string type: string
parameters:
default:
MAIN_LANG_DEFAULT: auto
examples:
- MAIN_LANG_DEFAULT: auto
properties:
MAIN_LANG_DEFAULT:
default: auto
type: string
type: object
user-groups: user-groups:
default: default:
- admin: true - admin: true
@@ -410,84 +484,7 @@ options:
type: string type: string
type: object type: object
type: array type: array
modules:
default:
- societe
examples:
- - societe
items:
type: string
type: array
postgres:
default:
replicas: 1
examples:
- replicas: 1
properties:
replicas:
default: 1
type: integer
type: object
ingress_class:
default: traefik
examples:
- traefik
type: string
domain:
default: your-company
examples:
- your-company
type: string
log-level:
default: 5
examples:
- 5
type: integer
resources:
default:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 50m
memory: 100Mi
examples:
- limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 50m
memory: 100Mi
properties:
limits:
default:
cpu: 200m
memory: 256Mi
properties:
cpu:
default: 200m
type: string
memory:
default: 256Mi
type: string
type: object
requests:
default:
cpu: 50m
memory: 100Mi
properties:
cpu:
default: 50m
type: string
memory:
default: 100Mi
type: string
type: object
type: object
dependencies: dependencies:
- dist: null
category: share
component: authentik-ldap
- dist: null - dist: null
category: core category: core
component: secret-generator component: secret-generator

View File

@@ -5,7 +5,7 @@ locals {
} }
resource "kubectl_manifest" "dolibarr_redis" { resource "kubectl_manifest" "dolibarr_redis" {
yaml_body = <<-EOF yaml_body = <<-EOF
apiVersion: "redis.redis.opstreelabs.in/v1beta2" apiVersion: "redis.redis.opstreelabs.in/v1beta1"
kind: "Redis" kind: "Redis"
metadata: metadata:
name: "${var.instance}-${var.component}-redis" name: "${var.instance}-${var.component}-redis"
@@ -25,7 +25,7 @@ resource "kubectl_manifest" "dolibarr_redis" {
redisExporter: redisExporter:
enabled: ${var.redis.exporter.enabled} enabled: ${var.redis.exporter.enabled}
image: "${var.images.redis_exporter.registry}/${var.images.redis_exporter.repository}:${var.images.redis_exporter.tag}" image: "${var.images.redis_exporter.registry}/${var.images.redis_exporter.repository}:${var.images.redis_exporter.tag}"
podSecurityContext: securityContext:
runAsUser: 1000 runAsUser: 1000
fsGroup: 1000 fsGroup: 1000
EOF EOF

View File

@@ -1,18 +0,0 @@
const NS=config.namespace;
const SRC=src;
const DEST=dest;
fn pre_pack() {
shell("helm repo add gitea-charts https://dl.gitea.io/charts/");
shell(`helm template gitea --version 9.5.0 gitea-charts/gitea --namespace=vynil-ci -a "monitoring.coreos.com/v1/ServiceMonitor" -a "monitoring.coreos.com/v1/PrometheusRule" --values values.yml >${global::SRC}/chart.yaml`);
}
fn post_pack() {
shell(`rm -f ${global::DEST}/v1_Pod_gitea-test-connection.yaml`);
shell(`rm -f ${global::DEST}/v1_Secret_gitea-inline-config.yaml`);
let regex = "'\\\\\\${\\(LDAP_[A-Z_]*\\)}'";
let final = "\\\"\\${\\1}\\\"";
shell(`sed -i "s/${regex}/${final}/g" ${global::DEST}/v1_Secret_gitea-init.yaml`);
}
fn pre_install() {
shell(`kubectl create -n ${global::NS} -f ${global::SRC}/v1_ConfigMap_gitea-themes.yaml || :`);
}

View File

@@ -476,9 +476,6 @@ options:
type: boolean type: boolean
type: object type: object
dependencies: dependencies:
- dist: null
category: share
component: authentik-ldap
- dist: null - dist: null
category: core category: core
component: secret-generator component: secret-generator

View File

@@ -91,9 +91,6 @@ options:
- gramo - gramo
type: string type: string
dependencies: dependencies:
- dist: null
category: share
component: authentik-forward
- dist: null - dist: null
category: core category: core
component: secret-generator component: secret-generator

View File

@@ -3,7 +3,7 @@ resource "kubectl_manifest" "config" {
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: "${var.component}-${var.instance}" name: "${var.instance}-${var.component}"
namespace: "${var.namespace}" namespace: "${var.namespace}"
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
data: data:

View File

@@ -3,7 +3,7 @@ resource "kubectl_manifest" "deploy" {
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: "${var.component}-${var.instance}" name: "${var.instance}-${var.component}"
namespace: "${var.namespace}" namespace: "${var.namespace}"
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
annotations: annotations:

View File

@@ -6,47 +6,20 @@ metadata:
name: infisical name: infisical
description: null description: null
options: options:
sub_domain:
default: infisical
examples:
- infisical
type: string
replicas:
default: 1
examples:
- 1
type: integer
app_group: app_group:
default: apps default: apps
examples: examples:
- apps - apps
type: string type: string
redis: domain:
default: default: your-company
exporter:
enabled: true
examples: examples:
- exporter: - your-company
enabled: true type: string
properties: domain_name:
exporter: default: your-company.com
default:
enabled: true
properties:
enabled:
default: true
type: boolean
type: object
type: object
sso_vynil:
default: true
examples: examples:
- true - your-company.com
type: boolean
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string type: string
images: images:
default: default:
@@ -155,20 +128,47 @@ options:
type: string type: string
type: object type: object
type: object type: object
domain_name:
default: your-company.com
examples:
- your-company.com
type: string
ingress_class: ingress_class:
default: traefik default: traefik
examples: examples:
- traefik - traefik
type: string type: string
domain: issuer:
default: your-company default: letsencrypt-prod
examples: examples:
- your-company - letsencrypt-prod
type: string
redis:
default:
exporter:
enabled: true
examples:
- exporter:
enabled: true
properties:
exporter:
default:
enabled: true
properties:
enabled:
default: true
type: boolean
type: object
type: object
replicas:
default: 1
examples:
- 1
type: integer
sso_vynil:
default: true
examples:
- true
type: boolean
sub_domain:
default: infisical
examples:
- infisical
type: string type: string
dependencies: dependencies:
- dist: null - dist: null

View File

@@ -5,7 +5,7 @@ resource "kubectl_manifest" "secret" {
apiVersion: "secretgenerator.mittwald.de/v1alpha1" apiVersion: "secretgenerator.mittwald.de/v1alpha1"
kind: "StringSecret" kind: "StringSecret"
metadata: metadata:
name: "${var.component}-${var.instance}" name: "${var.instance}-${var.component}"
namespace: "${var.namespace}" namespace: "${var.namespace}"
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
spec: spec:

View File

@@ -5,7 +5,7 @@ metadata:
name: nextcloud-metrics name: nextcloud-metrics
labels: labels:
app.kubernetes.io/name: nextcloud app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-4.6.4 helm.sh/chart: nextcloud-4.6.8
app.kubernetes.io/instance: nextcloud app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics

View File

@@ -5,7 +5,7 @@ metadata:
name: nextcloud name: nextcloud
labels: labels:
app.kubernetes.io/name: nextcloud app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-4.6.4 helm.sh/chart: nextcloud-4.6.8
app.kubernetes.io/instance: nextcloud app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: app app.kubernetes.io/component: app
@@ -32,7 +32,7 @@ spec:
spec: spec:
containers: containers:
- name: nextcloud - name: nextcloud
image: nextcloud:28.0.3-apache image: nextcloud:29.0.0-apache
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
env: env:

View File

@@ -5,7 +5,7 @@ metadata:
name: nextcloud name: nextcloud
labels: labels:
app.kubernetes.io/name: nextcloud app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-4.6.4 helm.sh/chart: nextcloud-4.6.8
app.kubernetes.io/instance: nextcloud app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: app app.kubernetes.io/component: app

View File

@@ -6,62 +6,20 @@ metadata:
name: nextcloud name: nextcloud
description: null description: null
options: options:
openid-name: admin:
default: vynil
examples:
- vynil
type: string
redis:
default: default:
exporter: name: nextcloud_admin
enabled: true
examples: examples:
- exporter: - name: nextcloud_admin
enabled: true
properties: properties:
exporter: name:
default: default: nextcloud_admin
enabled: true type: string
properties:
enabled:
default: true
type: boolean
type: object
type: object type: object
hpa: app_group:
default: default: ''
avg-cpu: 50
max-replicas: 5
min-replicas: 1
examples: examples:
- avg-cpu: 50 - ''
max-replicas: 5
min-replicas: 1
properties:
avg-cpu:
default: 50
type: integer
max-replicas:
default: 5
type: integer
min-replicas:
default: 1
type: integer
type: object
ingress_class:
default: traefik
examples:
- traefik
type: string
domain:
default: your-company
examples:
- your-company
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string type: string
apps: apps:
default: default:
@@ -153,95 +111,142 @@ options:
default: true default: true
type: boolean type: boolean
type: object type: object
postgres: backups:
default: default:
replicas: 1 enable: false
endpoint: ''
key_id_key: s3-id
restic_key: bck-password
retention:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
schedule:
backup: 30 3 * * *
check: 30 5 * * 1
db: 30 3 * * *
prune: 30 1 * * 0
secret_key: s3-secret
secret_name: backup-settings
use_barman: false
examples: examples:
- replicas: 1 - enable: false
endpoint: ''
key_id_key: s3-id
restic_key: bck-password
retention:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
schedule:
backup: 30 3 * * *
check: 30 5 * * 1
db: 30 3 * * *
prune: 30 1 * * 0
secret_key: s3-secret
secret_name: backup-settings
use_barman: false
properties: properties:
replicas: enable:
default: 1 default: false
type: integer type: boolean
type: object endpoint:
storage: default: ''
default:
postgres:
size: 5Gi
redis:
size: 2Gi
volume:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
description: Configure this app storage
examples:
- postgres:
size: 5Gi
redis:
size: 2Gi
volume:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
properties:
postgres:
default:
size: 5Gi
properties:
size:
default: 5Gi
type: string
type: object
redis:
default:
size: 2Gi
properties:
size:
default: 2Gi
type: string
type: object
volume:
default:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
properties:
accessMode:
default: ReadWriteOnce
enum:
- ReadWriteOnce
- ReadOnlyMany
- ReadWriteMany
type: string
class:
default: ''
type: string
size:
default: 10Gi
type: string
type:
default: Filesystem
type: string
type: object
type: object
admin:
default:
name: nextcloud_admin
examples:
- name: nextcloud_admin
properties:
name:
default: nextcloud_admin
type: string type: string
key_id_key:
default: s3-id
type: string
restic_key:
default: bck-password
type: string
retention:
default:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
properties:
db:
default: 30d
type: string
keepDaily:
default: 14
type: integer
keepMonthly:
default: 12
type: integer
keepWeekly:
default: 6
type: integer
keepYearly:
default: 12
type: integer
type: object
schedule:
default:
backup: 30 3 * * *
check: 30 5 * * 1
db: 30 3 * * *
prune: 30 1 * * 0
properties:
backup:
default: 30 3 * * *
type: string
check:
default: 30 5 * * 1
type: string
db:
default: 30 3 * * *
type: string
prune:
default: 30 1 * * 0
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 type: object
domain:
default: your-company
examples:
- your-company
type: string
domain_name: domain_name:
default: your_company.com default: your_company.com
examples: examples:
- your_company.com - your_company.com
type: string type: string
hpa:
default:
avg-cpu: 50
max-replicas: 5
min-replicas: 1
examples:
- avg-cpu: 50
max-replicas: 5
min-replicas: 1
properties:
avg-cpu:
default: 50
type: integer
max-replicas:
default: 5
type: integer
min-replicas:
default: 1
type: integer
type: object
images: images:
default: default:
collabora: collabora:
@@ -497,126 +502,118 @@ options:
type: string type: string
type: object type: object
type: object type: object
app_group: ingress_class:
default: '' default: traefik
examples: examples:
- '' - traefik
type: string type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
openid-name:
default: vynil
examples:
- vynil
type: string
postgres:
default:
replicas: 1
examples:
- replicas: 1
properties:
replicas:
default: 1
type: integer
type: object
redis:
default:
exporter:
enabled: true
examples:
- exporter:
enabled: true
properties:
exporter:
default:
enabled: true
properties:
enabled:
default: true
type: boolean
type: object
type: object
storage:
default:
postgres:
size: 5Gi
redis:
size: 2Gi
volume:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
description: Configure this app storage
examples:
- postgres:
size: 5Gi
redis:
size: 2Gi
volume:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
properties:
postgres:
default:
size: 5Gi
properties:
size:
default: 5Gi
type: string
type: object
redis:
default:
size: 2Gi
properties:
size:
default: 2Gi
type: string
type: object
volume:
default:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
properties:
accessMode:
default: ReadWriteOnce
enum:
- ReadWriteOnce
- ReadOnlyMany
- ReadWriteMany
type: string
class:
default: ''
type: string
size:
default: 10Gi
type: string
type:
default: Filesystem
type: string
type: object
type: object
sub_domain: sub_domain:
default: files default: files
examples: examples:
- files - files
type: string type: string
backups:
default:
enable: false
endpoint: ''
key_id_key: s3-id
restic_key: bck-password
retention:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
schedule:
backup: 30 3 * * *
check: 30 5 * * 1
db: 30 3 * * *
prune: 30 1 * * 0
secret_key: s3-secret
secret_name: backup-settings
use_barman: false
examples:
- enable: false
endpoint: ''
key_id_key: s3-id
restic_key: bck-password
retention:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
schedule:
backup: 30 3 * * *
check: 30 5 * * 1
db: 30 3 * * *
prune: 30 1 * * 0
secret_key: s3-secret
secret_name: backup-settings
use_barman: false
properties:
enable:
default: false
type: boolean
endpoint:
default: ''
type: string
key_id_key:
default: s3-id
type: string
restic_key:
default: bck-password
type: string
retention:
default:
db: 30d
keepDaily: 14
keepMonthly: 12
keepWeekly: 6
keepYearly: 12
properties:
db:
default: 30d
type: string
keepDaily:
default: 14
type: integer
keepMonthly:
default: 12
type: integer
keepWeekly:
default: 6
type: integer
keepYearly:
default: 12
type: integer
type: object
schedule:
default:
backup: 30 3 * * *
check: 30 5 * * 1
db: 30 3 * * *
prune: 30 1 * * 0
properties:
backup:
default: 30 3 * * *
type: string
check:
default: 30 5 * * 1
type: string
db:
default: 30 3 * * *
type: string
prune:
default: 30 1 * * 0
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
dependencies: dependencies:
- dist: null
category: share
component: authentik
- dist: null - dist: null
category: core category: core
component: secret-generator component: secret-generator

View File

@@ -6,7 +6,7 @@ metadata:
namespace: "vynil-cloud" namespace: "vynil-cloud"
labels: labels:
app.kubernetes.io/name: nextcloud app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-4.6.4 helm.sh/chart: nextcloud-4.6.8
app.kubernetes.io/instance: nextcloud app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics

View File

@@ -5,7 +5,7 @@ locals {
} }
resource "kubectl_manifest" "prj_redis" { resource "kubectl_manifest" "prj_redis" {
yaml_body = <<-EOF yaml_body = <<-EOF
apiVersion: "redis.redis.opstreelabs.in/v1beta2" apiVersion: "redis.redis.opstreelabs.in/v1beta1"
kind: "Redis" kind: "Redis"
metadata: metadata:
name: "${var.instance}-${var.component}-redis" name: "${var.instance}-${var.component}-redis"
@@ -25,7 +25,7 @@ resource "kubectl_manifest" "prj_redis" {
redisExporter: redisExporter:
enabled: ${var.redis.exporter.enabled} enabled: ${var.redis.exporter.enabled}
image: "${var.images.redis_exporter.registry}/${var.images.redis_exporter.repository}:${var.images.redis_exporter.tag}" image: "${var.images.redis_exporter.registry}/${var.images.redis_exporter.repository}:${var.images.redis_exporter.tag}"
podSecurityContext: securityContext:
runAsUser: 1000 runAsUser: 1000
fsGroup: 1000 fsGroup: 1000
EOF EOF

View File

@@ -5,7 +5,7 @@ metadata:
name: nextcloud-config name: nextcloud-config
labels: labels:
app.kubernetes.io/name: nextcloud app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-4.6.4 helm.sh/chart: nextcloud-4.6.8
app.kubernetes.io/instance: nextcloud app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
data: data:

View File

@@ -5,7 +5,7 @@ metadata:
name: nextcloud-nginxconfig name: nextcloud-nginxconfig
labels: labels:
app.kubernetes.io/name: nextcloud app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-4.6.4 helm.sh/chart: nextcloud-4.6.8
app.kubernetes.io/instance: nextcloud app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
data: data:

View File

@@ -5,10 +5,12 @@ metadata:
name: nextcloud-nextcloud name: nextcloud-nextcloud
labels: labels:
app.kubernetes.io/name: nextcloud app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-4.6.4 helm.sh/chart: nextcloud-4.6.8
app.kubernetes.io/instance: nextcloud app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: app app.kubernetes.io/component: app
annotations:
helm.sh/resource-policy: keep
spec: spec:
accessModes: accessModes:
- "ReadWriteOnce" - "ReadWriteOnce"

View File

@@ -5,7 +5,7 @@ metadata:
name: nextcloud-metrics name: nextcloud-metrics
labels: labels:
app.kubernetes.io/name: nextcloud app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-4.6.4 helm.sh/chart: nextcloud-4.6.8
app.kubernetes.io/instance: nextcloud app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics

View File

@@ -5,7 +5,7 @@ metadata:
name: nextcloud name: nextcloud
labels: labels:
app.kubernetes.io/name: nextcloud app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-4.6.4 helm.sh/chart: nextcloud-4.6.8
app.kubernetes.io/instance: nextcloud app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: app app.kubernetes.io/component: app

View File

@@ -3,7 +3,7 @@ resource "kubectl_manifest" "deploy" {
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: "${var.component}-${var.instance}" name: "${var.instance}-${var.component}"
namespace: "${var.namespace}" namespace: "${var.namespace}"
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
spec: spec:
@@ -53,7 +53,7 @@ resource "kubectl_manifest" "deploy" {
successThreshold: 1 successThreshold: 1
timeoutSeconds: 1 timeoutSeconds: 1
restartPolicy: Always restartPolicy: Always
serviceAccount: "${var.component}-${var.instance}" serviceAccount: "${var.instance}-${var.component}"
serviceAccountName: "${var.component}-${var.instance}" serviceAccountName: "${var.instance}-${var.component}"
EOF EOF
} }

View File

@@ -6,36 +6,26 @@ metadata:
name: okd name: okd
description: The console is a more friendly kubectl in the form of a single page webapp. It also integrates with other services like monitoring, chargeback, and OLM. description: The console is a more friendly kubectl in the form of a single page webapp. It also integrates with other services like monitoring, chargeback, and OLM.
options: options:
domain_name:
default: your_company.com
examples:
- your_company.com
type: string
ingress_class:
default: traefik
examples:
- traefik
type: string
app_group: app_group:
default: infra default: infra
examples: examples:
- infra - infra
type: string type: string
issuer: cluster-admin:
default: letsencrypt-prod default: false
examples: examples:
- letsencrypt-prod - false
type: string type: boolean
sub_domain:
default: okd
examples:
- okd
type: string
domain: domain:
default: your-company default: your-company
examples: examples:
- your-company - your-company
type: string type: string
domain_name:
default: your_company.com
examples:
- your_company.com
type: string
images: images:
default: default:
okd: okd:
@@ -75,12 +65,17 @@ options:
type: string type: string
type: object type: object
type: object type: object
managed: ingress_class:
default: false default: traefik
examples: examples:
- false - traefik
type: boolean type: string
cluster-admin: issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
managed:
default: false default: false
examples: examples:
- false - false
@@ -90,10 +85,12 @@ options:
items: items:
type: string type: string
type: array type: array
sub_domain:
default: okd
examples:
- okd
type: string
dependencies: dependencies:
- dist: null
category: share
component: authentik-forward
- dist: null - dist: null
category: core category: core
component: secret-generator component: secret-generator

View File

@@ -6,7 +6,7 @@ resource "kubectl_manifest" "okd_sa" {
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: "${var.component}-${var.instance}" name: "${var.instance}-${var.component}"
namespace: "${var.namespace}" namespace: "${var.namespace}"
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
EOF EOF
@@ -18,7 +18,7 @@ resource "kubectl_manifest" "okd_crb_admin" {
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: "${var.namespace}-${var.component}-${var.instance}" name: "${var.namespace}-${var.instance}-${var.component}"
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
@@ -26,7 +26,7 @@ resource "kubectl_manifest" "okd_crb_admin" {
name: cluster-admin name: cluster-admin
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: "${var.component}-${var.instance}" name: "${var.instance}-${var.component}"
namespace: "${var.namespace}" namespace: "${var.namespace}"
EOF EOF
} }
@@ -37,7 +37,7 @@ resource "kubectl_manifest" "okd_roles" {
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: Role kind: Role
metadata: metadata:
name: "${var.namespace}-${var.component}-${var.instance}" name: "${var.namespace}-${var.instance}-${var.component}"
namespace: "${local.sorted-namespaces[count.index]}" namespace: "${local.sorted-namespaces[count.index]}"
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
rules: rules:
@@ -53,16 +53,16 @@ resource "kubectl_manifest" "okd_role_bindings" {
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding kind: RoleBinding
metadata: metadata:
name: "${var.namespace}-${var.component}-${var.instance}" name: "${var.namespace}-${var.instance}-${var.component}"
namespace: "${local.sorted-namespaces[count.index]}" namespace: "${local.sorted-namespaces[count.index]}"
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: "${var.component}-${var.instance}" name: "${var.instance}-${var.component}"
namespace: "${var.namespace}" namespace: "${var.namespace}"
roleRef: roleRef:
kind: Role kind: Role
name: "${var.namespace}-${var.component}-${var.instance}" name: "${var.namespace}-${var.instance}-${var.component}"
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
EOF EOF
} }
@@ -73,7 +73,7 @@ resource "kubectl_manifest" "okd_clusterrole" {
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
name: "${var.namespace}-${var.component}-${var.instance}-list" name: "${var.namespace}-${var.instance}-${var.component}-list"
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
rules: rules:
- apiGroups: [""] - apiGroups: [""]
@@ -92,16 +92,16 @@ resource "kubectl_manifest" "okd_clusterrole_bindings" {
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: "${var.namespace}-${var.component}-${var.instance}-list" name: "${var.namespace}-${var.instance}-${var.component}-list"
namespace: "${local.sorted-namespaces[count.index]}" namespace: "${local.sorted-namespaces[count.index]}"
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: "${var.component}-${var.instance}" name: "${var.instance}-${var.component}"
namespace: "${var.namespace}" namespace: "${var.namespace}"
roleRef: roleRef:
kind: ClusterRole kind: ClusterRole
name: "${var.namespace}-${var.component}-${var.instance}-list" name: "${var.namespace}-${var.instance}-${var.component}-list"
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
EOF EOF
} }

View File

@@ -6,25 +6,15 @@ metadata:
name: traefik-ui name: traefik-ui
description: Access to the Traefik UI description: Access to the Traefik UI
options: options:
sub_domain:
default: traefik
examples:
- traefik
type: string
domain:
default: your-company
examples:
- your-company
type: string
app_group: app_group:
default: infra default: infra
examples: examples:
- infra - infra
type: string type: string
issuer: domain:
default: letsencrypt-prod default: your-company
examples: examples:
- letsencrypt-prod - your-company
type: string type: string
domain_name: domain_name:
default: your_company.com default: your_company.com
@@ -36,6 +26,16 @@ options:
examples: examples:
- traefik - traefik
type: string type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
sub_domain:
default: traefik
examples:
- traefik
type: string
dependencies: dependencies:
- dist: null - dist: null
category: share category: share
@@ -45,6 +45,7 @@ providers:
authentik: true authentik: true
kubectl: true kubectl: true
postgresql: null postgresql: null
mysql: null
restapi: true restapi: true
http: true http: true
gitea: null gitea: null

View File

@@ -8,7 +8,7 @@ locals {
Authorization = "Bearer ${data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"]}" Authorization = "Bearer ${data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"]}"
} }
service = { service = {
"name" = "${var.component}-${var.instance}" "name" = "${var.instance}-${var.component}"
"port" = { "port" = {
"number" = 80 "number" = 80
} }

View File

@@ -3,7 +3,7 @@ resource "kubectl_manifest" "service" {
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: "${var.component}-${var.instance}" name: "${var.instance}-${var.component}"
namespace: "${var.namespace}" namespace: "${var.namespace}"
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
spec: spec:

View File

@@ -186,7 +186,7 @@ data "kustomization_overlay" "data" {
- secretRef: - secretRef:
name: woodpecker-secret name: woodpecker-secret
- secretRef: - secretRef:
name: "${var.component}-${var.instance}-gitea" name: "${var.instance}-${var.component}-gitea"
- configMapRef: - configMapRef:
name: "${var.instance}-${var.component}-server" name: "${var.instance}-${var.component}-server"
volumeMounts: volumeMounts:

View File

@@ -28,7 +28,7 @@ resource "gitea_oauth2_app" "prj" {
resource "kubernetes_secret_v1" "oauth2-client-gitea" { resource "kubernetes_secret_v1" "oauth2-client-gitea" {
metadata { metadata {
name = "${var.component}-${var.instance}-gitea" name = "${var.instance}-${var.component}-gitea"
namespace = var.namespace namespace = var.namespace
} }
data = { data = {

View File

@@ -6,85 +6,25 @@ metadata:
name: woodpecker name: woodpecker
description: Woodpecker is a simple yet powerful CI/CD engine with great extensibility description: Woodpecker is a simple yet powerful CI/CD engine with great extensibility
options: options:
admin-users:
default: woodpecker,admin
examples:
- woodpecker,admin
type: string
app_group:
default: dev
examples:
- dev
type: string
domain: domain:
default: your-company default: your-company
examples: examples:
- your-company - your-company
type: string type: string
timeouts: domain_name:
default: default: your_company.com
default: '60'
max: '120'
examples: examples:
- default: '60' - your_company.com
max: '120'
properties:
default:
default: '60'
type: string
max:
default: '120'
type: string
type: object
storage:
default:
agent:
size: 10Gi
volume:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
description: Configure this app storage
examples:
- agent:
size: 10Gi
volume:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
properties:
agent:
default:
size: 10Gi
properties:
size:
default: 10Gi
type: string
type: object
volume:
default:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
properties:
accessMode:
default: ReadWriteOnce
enum:
- ReadWriteOnce
- ReadOnlyMany
- ReadWriteMany
type: string
class:
default: ''
type: string
size:
default: 10Gi
type: string
type:
default: Filesystem
enum:
- Filesystem
- Block
type: string
type: object
type: object
app_group:
default: dev
examples:
- dev
type: string type: string
images: images:
default: default:
@@ -183,35 +123,92 @@ options:
type: string type: string
type: object type: object
type: object type: object
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
domain_name:
default: your_company.com
examples:
- your_company.com
type: string
admin-users:
default: woodpecker,admin
examples:
- woodpecker,admin
type: string
ingress_class: ingress_class:
default: traefik default: traefik
examples: examples:
- traefik - traefik
type: string type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
storage:
default:
agent:
size: 10Gi
volume:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
description: Configure this app storage
examples:
- agent:
size: 10Gi
volume:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
properties:
agent:
default:
size: 10Gi
properties:
size:
default: 10Gi
type: string
type: object
volume:
default:
accessMode: ReadWriteOnce
class: ''
size: 10Gi
type: Filesystem
properties:
accessMode:
default: ReadWriteOnce
enum:
- ReadWriteOnce
- ReadOnlyMany
- ReadWriteMany
type: string
class:
default: ''
type: string
size:
default: 10Gi
type: string
type:
default: Filesystem
enum:
- Filesystem
- Block
type: string
type: object
type: object
sub_domain: sub_domain:
default: ci default: ci
examples: examples:
- ci - ci
type: string type: string
timeouts:
default:
default: '60'
max: '120'
examples:
- default: '60'
max: '120'
properties:
default:
default: '60'
type: string
max:
default: '120'
type: string
type: object
dependencies: dependencies:
- dist: null
category: apps
component: gitea
- dist: null - dist: null
category: core category: core
component: secret-generator component: secret-generator