The following requirements are needed by this module:
The following providers are used by this module:
The following resources are used by this module:
-
argocd_application.this (resource)
-
argocd_project.this (resource)
-
kubernetes_namespace.postgresql_namespace (resource)
-
kubernetes_secret.postgresql_secret (resource)
-
null_resource.dependencies (resource)
-
null_resource.this (resource)
-
random_password.password_secret (resource)
-
kubernetes_service.postgresql (data source)
-
utils_deep_merge_yaml.values (data source)
The following input variables are required:
Description: Name given to the cluster. Value used for naming some the resources created by the module.
Type: string
Description: Base domain of the cluster. Value used for the ingress' URL of the application.
Type: string
The following input variables are optional (have default values):
Description: Repository allowed to be scraped in this AppProject.
Type: string
Default: "https://github.com/GersonRS/modern-gitops-stack-module-postgresql.git"
Description: Namespace where the applications’s Kubernetes resources should be created. Namespace will be created in case it doesn’t exist.
Type: string
Default: "database"
Description: Namespace used by Argo CD where the Application and AppProject resources should be created.
Type: string
Default: "argocd"
Description: Subdomain of the cluster. Value used for the ingress' URL of the application.
Type: string
Default: "apps"
Description: Name of the Argo CD AppProject where the Application should be created. If not set, the Application will be created in a new AppProject only for this Application.
Type: string
Default: null
Description: Labels to attach to the Argo CD Application resource.
Type: map(string)
Default: {}
Description: Destination cluster where the application should be deployed.
Type: string
Default: "in-cluster"
Description: Override of target revision of the application chart.
Type: string
Default: "v2.11.0"
Description: SSL certificate issuer to use. Usually you would configure this value as letsencrypt-staging or letsencrypt-prod on your root *.tf files.
Type: string
Default: "selfsigned-issuer"
Description: Enable Prometheus ServiceMonitor in the Helm chart.
Type: bool
Default: true
Description: Helm chart value overrides. They should be passed as a list of HCL structures.
Type: any
Default: []
Description: Automated sync options for the Argo CD Application resource.
Type:
object({
allow_empty = optional(bool)
prune = optional(bool)
self_heal = optional(bool)
})Default:
{
"allow_empty": false,
"prune": true,
"self_heal": true
}Description: IDs of the other modules on which this module depends on.
Type: map(string)
Default: {}
Description: Resource limits and requests for module components. Follow the style on official documentation to understand the format of the values.
|
Important
|
These are not production values. You should always adjust them to your needs. |
Type:
object({
requests = optional(object({
cpu = optional(string, "100m")
memory = optional(string, "256Mi")
}), {})
limits = optional(object({
cpu = optional(string, "1000m")
memory = optional(string, "512Mi")
}), {})
})Default: {}
Description: Namespaces where the replication secrets should be reflected.
Type: list(string)
Default: []
The following outputs are exported:
Description: ID to pass other modules in order to refer to this module as a dependency.
Description: n/a
Description: Postgres cluster dns
Description: Postgres Cluster IPs
Show tables
= Requirements
| Name | Version |
|---|---|
>= 6 |
|
>= 3 |
|
>= 3 |
|
>= 1 |
= Providers
| Name | Version |
|---|---|
n/a |
|
>= 3 |
|
>= 6 |
|
>= 1 |
|
>= 3 |
= Resources
| Name | Type |
|---|---|
resource |
|
resource |
|
resource |
|
resource |
|
resource |
|
resource |
|
resource |
|
data source |
|
data source |
= Inputs
| Name | Description | Type | Default | Required | ||
|---|---|---|---|---|---|---|
Repository allowed to be scraped in this AppProject. |
|
|
no |
|||
Namespace where the applications’s Kubernetes resources should be created. Namespace will be created in case it doesn’t exist. |
|
|
no |
|||
Namespace used by Argo CD where the Application and AppProject resources should be created. |
|
|
no |
|||
Name given to the cluster. Value used for naming some the resources created by the module. |
|
n/a |
yes |
|||
Base domain of the cluster. Value used for the ingress' URL of the application. |
|
n/a |
yes |
|||
Subdomain of the cluster. Value used for the ingress' URL of the application. |
|
|
no |
|||
Name of the Argo CD AppProject where the Application should be created. If not set, the Application will be created in a new AppProject only for this Application. |
|
|
no |
|||
Labels to attach to the Argo CD Application resource. |
|
|
no |
|||
Destination cluster where the application should be deployed. |
|
|
no |
|||
Override of target revision of the application chart. |
|
|
no |
|||
SSL certificate issuer to use. Usually you would configure this value as |
|
|
no |
|||
Enable Prometheus ServiceMonitor in the Helm chart. |
|
|
no |
|||
Helm chart value overrides. They should be passed as a list of HCL structures. |
|
|
no |
|||
Automated sync options for the Argo CD Application resource. |
|
|
no |
|||
IDs of the other modules on which this module depends on. |
|
|
no |
|||
Number of replicas for module |
|
|
no |
|||
Resource limits and requests for module components. Follow the style on official documentation to understand the format of the values.
|
|
|
no |
|||
List databases aditional |
|
|
no |
|||
Size of the persistent volume claim |
|
|
no |
|||
Enable debug mode |
|
|
no |
|||
Namespaces where the replication secrets should be reflected. |
|
|
no |
= Outputs
| Name | Description |
|---|---|
ID to pass other modules in order to refer to this module as a dependency. |
|
n/a |
|
Postgres cluster dns |
|
Postgres Cluster IPs |