Terraform install mariadb
Jump to navigation
Jump to search
Working versions[edit]
resource "helm_release" "mariadb" { name = "mariadb" repository = "https://charts.bitnami.com/bitnami" chart = "mariadb" version = "17.0.0" # without fixing version fails }
Same as only chart: https://charts.bitnami.com/bitnami/mariadb-17.0.0.tgz
resource "helm_release" "mariadb" {
name = "mariadb"
repository = "bitnami" # Local repository need to be localy added
chart = "mariadb"
}
Not working versions[edit]
resource "helm_release" "mariadb" { name = "mariadb" namespace = "mariadb" chart = "mariadb" repository = "oci://registry-1.docker.io/bitnamicharts/mariadb" }
resource "helm_release" "mariadb" {
name = "mariadb"
repository = "https://charts.bitnami.com/bitnami"
chart = "mariadb"
}
Examples[edit]
Terraform will perform the following actions:
# helm_release.mariadb will be created
+ resource "helm_release" "mariadb" {
+ atomic = false
+ chart = "mariadb"
+ cleanup_on_fail = false
+ create_namespace = false
+ dependency_update = false
+ disable_crd_hooks = false
+ disable_openapi_validation = false
+ disable_webhooks = false
+ force_update = false
+ id = (known after apply)
+ lint = false
+ manifest = (known after apply)
+ max_history = 0
+ metadata = (known after apply)
+ name = "mariadb"
+ namespace = "mariadb"
+ pass_credentials = false
+ recreate_pods = false
+ render_subchart_notes = true
+ replace = false
+ repository = "oci://registry-1.docker.io/bitnamicharts/mariadb"
+ reset_values = false
+ reuse_values = false
+ skip_crds = false
+ status = "deployed"
+ timeout = 300
+ verify = false
+ version = (known after apply)
+ wait = true
+ wait_for_jobs = false
}
Plan: 1 to add, 0 to change, 0 to destroy.
Errors[edit]
│ Error: could not download chart: GET "https://registry-1.docker.io/v2/bitnamicharts/mariadb/mariadb/tags/list": unexpected status code 401: unauthorized: authentication required
Error: could not download chart: chart "bitnami/mariadb" not found in https://charts.bitnami.com/bitnami repository
Error: could not download chart: invalid_reference: invalid tag
Related[edit]
See also[edit]
Advertising: