3 Commits
Author SHA1 Message Date
pi-ux-ce 1b7720d910 documentation in progress 2024-12-17 11:32:24 +00:00
pi-ux-ce a945f5e141 officialy migrated bookstack 2024-12-17 11:32:08 +00:00
pi-ux-ce e01f8c8462 cleanup old comments 2024-12-17 11:31:57 +00:00
3 changed files with 12 additions and 8 deletions
+7
View File
@@ -65,6 +65,13 @@ Not required , the object name will be used if not specified
## example
### Extra manifest
You can add some extra manifest using this command
```
extra_manifest = ["/opt/kubernetes/Bookstack_kube/Bookstack.configmap.yaml","/opt/kubernetes/Bookstack_kube/Bookstack.secret.yaml"]
```
### Volumes
#### Volume as PVC
-4
View File
@@ -19,7 +19,6 @@ variable "kubernetes" {
pvc_size = optional(string)
mount_path = string
})))
#secret = optional(map(string))
environment = optional(map(object({
name = optional(string)
value = optional(string)
@@ -29,7 +28,6 @@ variable "kubernetes" {
key = optional(string, null)
})
}))
# secret_name = optional(string)
})))
replicas = optional(number, 1)
namespace = optional(string)
@@ -64,8 +62,6 @@ locals {
name = pvc.name
pvc_size = pvc.pvc_size
mount_path = pvc.mount_path
# database = value.database
# database = pvc.database
namespace = coalesce(value.namespace, key)
}] if value.enabled == true && value.pvc != null
])
+5 -4
View File
@@ -1,8 +1,9 @@
kubernetes = {
bookstack = {
namespace = "bookstack-terraform"
enabled = false
namespace = "bookstack"
enabled = true
replicas = 01
extra_manifest = ["/opt/kubernetes/Bookstack_kube/Bookstack.configmap.yaml","/opt/kubernetes/Bookstack_kube/Bookstack.secret.yaml"]
image = "linuxserver/bookstack:24.10.3"
service_port = 80
database = {
@@ -46,7 +47,7 @@ kubernetes = {
value_from = {
secret_key_ref = {
name = "bookstack-credentials"
key = "DB_USERNAME"
key = "DB_USER"
}
}
}
@@ -97,7 +98,7 @@ kubernetes = {
enabled = true
namespace = "onitama"
image = "ghcr.io/jackadamson/onitama:latest"
extra_manifest = ["nextcloud.secret.yaml","/opt/kubernetes/Terraform_kube/onitama_secret2.yaml"]
# extra_manifest = ["nextcloud.secret.yaml","/opt/kubernetes/Terraform_kube/onitama_secret2.yaml"]
service_port = 8080
requirements = {
limits-cpu = "50m"