Skip to content

Commit 08b92d1

Browse files
committed
Add httptoolkit.com to the setup
1 parent b60db2f commit 08b92d1

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

certificates.tf

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,27 @@ resource "helm_release" "cert_manager_scaleway_webhook" {
110110
]
111111
}
112112

113+
resource "kubectl_manifest" "cert_httptoolkit_com" {
114+
yaml_body = yamlencode({
115+
apiVersion = "cert-manager.io/v1"
116+
kind = "Certificate"
117+
metadata = {
118+
name = "cert-httptoolkit-com"
119+
namespace = "certificates"
120+
}
121+
spec = {
122+
secretName = "cert-httptoolkit-com"
123+
issuerRef = {
124+
name = "letsencrypt-prod"
125+
kind = "ClusterIssuer"
126+
}
127+
commonName = "httptoolkit.com"
128+
dnsNames = ["httptoolkit.com"]
129+
}
130+
})
131+
depends_on = [kubectl_manifest.letsencrypt_prod]
132+
}
133+
113134
resource "kubectl_manifest" "cert_wildcard_httptoolkit_tech" {
114135
yaml_body = yamlencode({
115136
apiVersion = "cert-manager.io/v1"
@@ -134,7 +155,6 @@ resource "kubectl_manifest" "cert_wildcard_httptoolkit_tech" {
134155
depends_on = [kubectl_manifest.letsencrypt_prod]
135156
}
136157

137-
138158
resource "kubectl_manifest" "cert_wildcard_httptoolk_it" {
139159
yaml_body = yamlencode({
140160
apiVersion = "cert-manager.io/v1"

gateway.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@ locals {
100100
mode = "Terminate"
101101
certificateRefs = [{ kind = "Secret", namespace = "certificates", name = "cert-wildcard-httptoolkit-tech" }]
102102
}
103+
},
104+
// Normal HTTPS for httptoolkit.com
105+
{
106+
name = "https-httptoolkit-com"
107+
port = 443
108+
protocol = "HTTPS"
109+
hostname = "httptoolkit.com"
110+
allowedRoutes = { namespaces = { from = "All" } }
111+
tls = {
112+
mode = "Terminate"
113+
certificateRefs = [{ kind = "Secret", namespace = "certificates", name = "cert-httptoolkit-com" }]
114+
}
103115
}
104116
]
105117
}

0 commit comments

Comments
 (0)