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
|
||||
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
@@ -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
|
||||
])
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user