mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-25 21:13:01 +03:00
c3bf94e4cc
Updates for v20+ and misc terraform bug fixes. Also refactored to use terraform variables instead of locals which helps with readability and ease of use for new users. Terraform validation is currently passing: ![Screenshot 2024-07-21 at 13 18 37](https://github.com/user-attachments/assets/02aadc2d-d3f6-4e8b-9315-64e25191d9e6) Additionally added [terraform-docs](https://terraform-docs.io/) to generate a more helpful README for terraform specific configuration. Raw K8s manifests were updated with changes for v20+ as well. --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
16 lines
415 B
HCL
16 lines
415 B
HCL
resource "kubernetes_persistent_volume_claim" "server" {
|
|
metadata {
|
|
name = "${var.twentycrm_app_name}-server-pvc"
|
|
namespace = kubernetes_namespace.twentycrm.metadata.0.name
|
|
}
|
|
spec {
|
|
access_modes = ["ReadWriteOnce"]
|
|
resources {
|
|
requests = {
|
|
storage = var.twentycrm_server_pvc_requests
|
|
}
|
|
}
|
|
volume_name = kubernetes_persistent_volume.server.metadata.0.name
|
|
}
|
|
}
|