Setting up cert-manager helm_release
This commit is contained in:
parent
cddf67de2f
commit
82333fe6ce
@ -19,6 +19,10 @@ terraform {
|
|||||||
source = "hashicorp/kubernetes"
|
source = "hashicorp/kubernetes"
|
||||||
version = "2.37.1"
|
version = "2.37.1"
|
||||||
}
|
}
|
||||||
|
kubectl = {
|
||||||
|
source = "alekc/kubectl"
|
||||||
|
version = "2.0.0"
|
||||||
|
}
|
||||||
helm = {
|
helm = {
|
||||||
source = "hashicorp/helm"
|
source = "hashicorp/helm"
|
||||||
version = "3.0.2"
|
version = "3.0.2"
|
||||||
@ -48,6 +52,10 @@ provider kubernetes {
|
|||||||
config_path = "config.yaml"
|
config_path = "config.yaml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
provider kubectl {
|
||||||
|
config_path = "config.yaml"
|
||||||
|
}
|
||||||
|
|
||||||
provider helm {
|
provider helm {
|
||||||
kubernetes = {
|
kubernetes = {
|
||||||
config_path = "config.yaml"
|
config_path = "config.yaml"
|
||||||
|
@ -2,6 +2,6 @@ resource helm_release nginx {
|
|||||||
name = "ingress-nginx"
|
name = "ingress-nginx"
|
||||||
repository = "https://kubernetes.github.io/ingress-nginx"
|
repository = "https://kubernetes.github.io/ingress-nginx"
|
||||||
chart = "ingress-nginx"
|
chart = "ingress-nginx"
|
||||||
namespace = "ingress-nginx"
|
namespace = "ingress-nginx"
|
||||||
create_namespace = true
|
create_namespace = true
|
||||||
}
|
}
|
16
infra/vultr-kubernetes/tls.tf
Normal file
16
infra/vultr-kubernetes/tls.tf
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
resource helm_release shockrah_cert_manager {
|
||||||
|
name = "cert-manager"
|
||||||
|
repository = "https://charts.jetstack.io"
|
||||||
|
chart = "cert-manager"
|
||||||
|
version = "v1.18.2"
|
||||||
|
namespace = "cert-manager"
|
||||||
|
create_namespace = true
|
||||||
|
cleanup_on_fail = true
|
||||||
|
|
||||||
|
set = [
|
||||||
|
{
|
||||||
|
name = "crds.enabled"
|
||||||
|
value = "true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -43,6 +43,9 @@ variable playground {
|
|||||||
health = object({
|
health = object({
|
||||||
dns = string
|
dns = string
|
||||||
})
|
})
|
||||||
|
tls = object({
|
||||||
|
email = string
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,9 @@ playground = {
|
|||||||
health = {
|
health = {
|
||||||
dns = "health"
|
dns = "health"
|
||||||
}
|
}
|
||||||
|
tls = {
|
||||||
|
email = "dev@shockrah.xyz"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bastion = {
|
bastion = {
|
||||||
@ -29,4 +32,3 @@ bastion = {
|
|||||||
os = "1743"
|
os = "1743"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user