72 lines
2.3 KiB
Text
72 lines
2.3 KiB
Text
let _concerns_lib = import "schemas/lib/concerns.ncl" in
|
|
let _context_lib = import "schemas/catalog/context.ncl" in
|
|
|
|
{
|
|
Lemmy = {
|
|
context | _context_lib.ComponentContext | optional,
|
|
|
|
name | String,
|
|
namespace | String,
|
|
catalog_ref | String | optional,
|
|
|
|
# image/image_tag refer to the nginx proxy (external-facing container)
|
|
image | String | default = "nginx",
|
|
image_tag | String | default = "1.27-alpine",
|
|
http_port | Number | default = 80,
|
|
|
|
domain | String,
|
|
dns_zone | String,
|
|
acme_email | String,
|
|
cluster_issuer | String,
|
|
|
|
gateway_fip | String,
|
|
gateway_name | String | default = "libre-wuji",
|
|
gateway_ns | String | default = "kube-system",
|
|
|
|
lemmy_image | String | default = "dessalines/lemmy",
|
|
lemmy_image_tag | String | default = "latest",
|
|
lemmy_ui_image | String | default = "dessalines/lemmy-ui",
|
|
lemmy_ui_image_tag | String | default = "latest",
|
|
pictrs_image | String | default = "asonix/pictrs",
|
|
pictrs_image_tag | String | default = "latest",
|
|
|
|
pictrs_storage_class | String | default = "longhorn-retain",
|
|
pictrs_storage_size | String | default = "3Gi",
|
|
|
|
db_host | String,
|
|
db_port | Number | default = 5432,
|
|
db_name | String | default = "lemmy",
|
|
db_user | String | default = "lemmy",
|
|
|
|
requires | {
|
|
storage | { size | String, persistent | Bool } | optional,
|
|
ports | Array {
|
|
port | Number,
|
|
exposure | [| 'public, 'private, 'internal |] | default = 'public,
|
|
} | default = [],
|
|
credentials | Array String | default = [],
|
|
} | default = {},
|
|
|
|
provides | {
|
|
service | String | optional,
|
|
port | Number | optional,
|
|
endpoints | Array String | default = [],
|
|
} | default = {},
|
|
|
|
operations | {
|
|
install | Bool | default = true,
|
|
update | Bool | default = true,
|
|
delete | Bool | default = true,
|
|
health | Bool | default = true,
|
|
} | default = {},
|
|
|
|
live_check | {
|
|
strategy | [| 'k8s_pods, 'http_get |] | default = 'k8s_pods,
|
|
scope | [| 'cp_only, 'all_nodes |] | default = 'cp_only,
|
|
} | default = {},
|
|
|
|
concerns | _concerns_lib.ServiceConcerns | optional,
|
|
|
|
..
|
|
},
|
|
}
|