Compare commits
3
Commits
776d96c167
...
1b7720d910
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b7720d910 | ||
|
|
a945f5e141 | ||
|
|
e01f8c8462 |
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user