mariadb

ballj/mariadb/kubernetes

Terraform Module HCL KUBERNETES

This terraform module deploys a MariaDB statefulset into a kubernetes cluster.

Install
module "mariadb" {
source = "ballj/mariadb/kubernetes"
version = "1.3.0"
}
plain text: /constructs/tfmod-ballj-mariadb-kubernetes/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Kubernetes MariaDB This terraform module deploys a MariaDB statefulset into a kubernetes cluster. Usage `` module "mariadb" { source = "ballj/mariadb/kubernetes" version = "~> 1.2" namespace = "production" object_prefix = "myapp-db" database_name = "myapp_db" labels = { "app.kubernetes.io/part-of" = "myapp" } } ` Variables StatefulSets Variables | Variable | Required | Default | Description | | --------------------------------- | -------- | --------------------------- | -------------------------------------------------- | | namespace | Yes | N/A | Kubernetes namespace to deploy into | | object_prefix | Yes | N/A | Unique name to prefix all objects with | | name | Yes | N/A | Database to create on startup | | username | No | dbuser | Database user to add | | password_secret | No |

Inputs (50)
NameTypeDescriptionDefault
namestringName of the database to create required
object_prefixstringUnique name to prefix all objects with required
namespacestringKubernetes namespace for deployment required
template_annotationsmap(string)Annotations to add to the template{}
password_autocreate_lengthnumberLength of the automatically generated password16
env_secretlist(object({ name = strEnvironment variables to pull from secrets[]
readiness_probe_initial_delaynumberInitial delay of the probe in seconds10
liveness_probe_enabledboolEnable the readyness probetrue
image_tagstringDocker image tag to use"10.6.4-debian-10-r9"
service_traffic_policystringService external traffic policy"Local"
readiness_probe_timeoutnumberTimeout of the probe in seconds1
liveness_probe_periodnumberPeriod of the probe in seconds10
startup_probe_periodnumberPeriod of the probe in seconds1
usernamestringUsername of new user to create"dbuser"
annotationsmap(string)Annotations to add to the deployment{}
liveness_probe_failurenumberMinimum consecutive failures for the probe to be considered failed after having 3
timeout_updatestringTimeout for creating the statefulset"4m"
password_autocreate_specialboolUse special characters in the generated passwordfalse
revision_historynumberThe number of old ReplicaSets to retain4
empty_dir_mediumstringMedium of the empty_dir if no PVC is specified""
service_account_namestringService account name to add to the pod""
liveness_probe_timeoutnumberTimeout of the probe in seconds1
startup_probe_initial_delaynumberInitial delay of the probe in seconds30
… and 10 more inputs
Outputs (7)
hostname — Name of the kubernetes service
port — Port for the kubernetes service
password_secret — Secret that is created with the database password
password_key — Key for the database password in the secret
name — Database name
username — Username that can login to the databse
type — Type of database deployed
Resources (5)
kubernetes_config_mapkubernetes_secretkubernetes_servicekubernetes_stateful_setrandom_password
Details
FrameworkTerraform Module
LanguageHCL
Version1.3.0
Cloud KUBERNETES
★ Stars2
Forks3
Total downloads7.5k
Inputs50
Outputs7
Resources5
Namespaceballj
Updated