add nginx
This commit is contained in:
1 parent
0db4b6fa3b
commit
0f7ca8157b
8 files changed
+157
No files matched your search
@@ -0,0 +1,40 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
helm = {
|
||||
source = "hashicorp/helm"
|
||||
version = "~> 2.14"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "helm" {
|
||||
kubernetes {
|
||||
config_path = "/etc/rancher/k3s/k3s.yaml"
|
||||
}
|
||||
}
|
||||
|
||||
resource "helm_release" "nginx" {
|
||||
name = "nginx"
|
||||
repository = "oci://registry-1.docker.io/bitnamicharts"
|
||||
version = "25.1.11"
|
||||
chart = "nginx"
|
||||
namespace = "nginx"
|
||||
create_namespace = true
|
||||
|
||||
values = [
|
||||
file("${path.module}/values.yaml")
|
||||
]
|
||||
}
|
||||
|
||||
resource "helm_release" "nginx2" {
|
||||
name = "nginx2"
|
||||
repository = "oci://registry-1.docker.io/bitnamicharts"
|
||||
version = "25.1.11"
|
||||
chart = "nginx"
|
||||
namespace = "nginx"
|
||||
create_namespace = true
|
||||
|
||||
values = [
|
||||
file("${path.module}/values2.yaml")
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user