mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-25 21:13:01 +03:00
43016db801
# Support for Kubernetes via Terraform and Manifests Adding basic support for the following Kubernetes resources - persistent volume - server - database - persistent volume claim - server - database - deployment - server - database - ingress - server - service - server - database - secret - server --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
37 lines
900 B
HCL
37 lines
900 B
HCL
#############
|
|
# Providers #
|
|
#############
|
|
provider "kubernetes" {
|
|
config_path = "~/.kube/config"
|
|
}
|
|
|
|
#################
|
|
# Global Locals #
|
|
#################
|
|
locals {
|
|
twentycrm_app_name = "twentycrm"
|
|
twentycrm_app_hostname = "crm.example.com"
|
|
twentycrm_server_image = "twentycrm/twenty:v0.10.4"
|
|
twentycrm_db_image = "twentycrm/twenty-postgres:v0.10.4"
|
|
twentycrm_db_pv_path = "/path/to/mystorage"
|
|
twentycrm_db_pv_capacity = "10Gi"
|
|
twentycrm_db_pvc_requests = "10Gi"
|
|
twentycrm_server_pv_path = "/path/to/mystorage"
|
|
twentycrm_server_pv_capacity = "10Gi"
|
|
twentycrm_server_pvc_requests = "10Gi"
|
|
}
|
|
|
|
####################
|
|
# Terraform Config #
|
|
####################
|
|
terraform {
|
|
required_version = ">= 1.7.4"
|
|
required_providers {
|
|
kubernetes = {
|
|
source = "hashicorp/kubernetes"
|
|
version = ">= 2.23.0"
|
|
}
|
|
}
|
|
|
|
}
|