mirror of
https://github.com/lingble/twenty.git
synced 2025-11-06 15:47:56 +00:00
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:  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>
19 lines
380 B
HCL
19 lines
380 B
HCL
resource "kubernetes_service" "twentycrm_db" {
|
|
metadata {
|
|
name = "${var.twentycrm_app_name}-db"
|
|
namespace = kubernetes_namespace.twentycrm.metadata.0.name
|
|
}
|
|
spec {
|
|
selector = {
|
|
app = "${var.twentycrm_app_name}-db"
|
|
}
|
|
session_affinity = "ClientIP"
|
|
port {
|
|
port = 5432
|
|
target_port = 5432
|
|
}
|
|
|
|
type = "ClusterIP"
|
|
}
|
|
}
|