-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcf-tunnel.tf
42 lines (41 loc) · 859 Bytes
/
cf-tunnel.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
resource "kubernetes_deployment" "tunnel" {
metadata {
name = "cf-tunnel"
labels = {
App = "cf-tunnel"
}
namespace = "srikanth-iyengar"
}
spec {
replicas = 1
selector {
match_labels = {
App = "cf-tunnel"
}
}
template {
metadata {
labels = {
App = "cf-tunnel"
}
}
spec {
container {
image = "cloudflare/cloudflared"
name = "tunnel"
command = ["cloudflared", "tunnel", "--no-autoupdate", "run", "--token", cloudflare_tunnel.auto_tunnel.tunnel_token]
resources {
limits = {
cpu = "1"
memory = "1024Mi"
}
requests = {
cpu = "250m"
memory = "50Mi"
}
}
}
}
}
}
}