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 ## 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 ### Volumes
#### Volume as PVC #### Volume as PVC
-4
View File
@@ -19,7 +19,6 @@ variable "kubernetes" {
pvc_size = optional(string) pvc_size = optional(string)
mount_path = string mount_path = string
}))) })))
#secret = optional(map(string))
environment = optional(map(object({ environment = optional(map(object({
name = optional(string) name = optional(string)
value = optional(string) value = optional(string)
@@ -29,7 +28,6 @@ variable "kubernetes" {
key = optional(string, null) key = optional(string, null)
}) })
})) }))
# secret_name = optional(string)
}))) })))
replicas = optional(number, 1) replicas = optional(number, 1)
namespace = optional(string) namespace = optional(string)
@@ -64,8 +62,6 @@ locals {
name = pvc.name name = pvc.name
pvc_size = pvc.pvc_size pvc_size = pvc.pvc_size
mount_path = pvc.mount_path mount_path = pvc.mount_path
# database = value.database
# database = pvc.database
namespace = coalesce(value.namespace, key) namespace = coalesce(value.namespace, key)
}] if value.enabled == true && value.pvc != null }] if value.enabled == true && value.pvc != null
]) ])
+5 -4
View File
@@ -1,8 +1,9 @@
kubernetes = { kubernetes = {
bookstack = { bookstack = {
namespace = "bookstack-terraform" namespace = "bookstack"
enabled = false enabled = true
replicas = 01 replicas = 01
extra_manifest = ["/opt/kubernetes/Bookstack_kube/Bookstack.configmap.yaml","/opt/kubernetes/Bookstack_kube/Bookstack.secret.yaml"]
image = "linuxserver/bookstack:24.10.3" image = "linuxserver/bookstack:24.10.3"
service_port = 80 service_port = 80
database = { database = {
@@ -46,7 +47,7 @@ kubernetes = {
value_from = { value_from = {
secret_key_ref = { secret_key_ref = {
name = "bookstack-credentials" name = "bookstack-credentials"
key = "DB_USERNAME" key = "DB_USER"
} }
} }
} }
@@ -97,7 +98,7 @@ kubernetes = {
enabled = true enabled = true
namespace = "onitama" namespace = "onitama"
image = "ghcr.io/jackadamson/onitama:latest" 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 service_port = 8080
requirements = { requirements = {
limits-cpu = "50m" limits-cpu = "50m"