Skip to content

GersonRS/modern-gitops-stack-module-postgresql

Repository files navigation

modern-gitops-stack-module-postgresql

Requirements

The following requirements are needed by this module:

Providers

The following providers are used by this module:

Resources

The following resources are used by this module:

Required Inputs

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

Optional Inputs

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: Number of replicas for module

Type: number

Default: 1

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: List databases aditional

Type: list(string)

Default: []

Description: Size of the persistent volume claim

Type: number

Default: 5

Description: Enable debug mode

Type: bool

Default: false

Description: Namespaces where the replication secrets should be reflected.

Type: list(string)

Default: []

Outputs

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

Reference in table format

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.

string

"https://github.com/GersonRS/modern-gitops-stack-module-postgresql.git"

no

Namespace where the applications’s Kubernetes resources should be created. Namespace will be created in case it doesn’t exist.

string

"database"

no

Namespace used by Argo CD where the Application and AppProject resources should be created.

string

"argocd"

no

Name given to the cluster. Value used for naming some the resources created by the module.

string

n/a

yes

Base domain of the cluster. Value used for the ingress' URL of the application.

string

n/a

yes

Subdomain of the cluster. Value used for the ingress' URL of the application.

string

"apps"

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.

string

null

no

Labels to attach to the Argo CD Application resource.

map(string)

{}

no

Destination cluster where the application should be deployed.

string

"in-cluster"

no

Override of target revision of the application chart.

string

"v2.11.0"

no

SSL certificate issuer to use. Usually you would configure this value as letsencrypt-staging or letsencrypt-prod on your root *.tf files.

string

"selfsigned-issuer"

no

Enable Prometheus ServiceMonitor in the Helm chart.

bool

true

no

Helm chart value overrides. They should be passed as a list of HCL structures.

any

[]

no

Automated sync options for the Argo CD Application resource.

object({
    allow_empty = optional(bool)
    prune       = optional(bool)
    self_heal   = optional(bool)
  })
{
  "allow_empty": false,
  "prune": true,
  "self_heal": true
}

no

IDs of the other modules on which this module depends on.

map(string)

{}

no

Number of replicas for module

number

1

no

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.
object({
    requests = optional(object({
      cpu    = optional(string, "100m")
      memory = optional(string, "256Mi")
    }), {})
    limits = optional(object({
      cpu    = optional(string, "1000m")
      memory = optional(string, "512Mi")
    }), {})
  })

{}

no

List databases aditional

list(string)

[]

no

Size of the persistent volume claim

number

5

no

Enable debug mode

bool

false

no

Namespaces where the replication secrets should be reflected.

list(string)

[]

no

= Outputs

Name Description

id

ID to pass other modules in order to refer to this module as a dependency.

n/a

Postgres cluster dns

Postgres Cluster IPs

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •