attempted k8s resources as tf files, not worth the trouble

This commit is contained in:
2024-04-20 02:10:01 +12:00
parent 43dbb951fe
commit 5b83607fe0
7 changed files with 151 additions and 14 deletions

View File

@ -0,0 +1,29 @@
resource "kubernetes_service" "keyoxide" {
metadata {
name = "keyoxide"
namespace = "default"
labels = {
svc = "keyoxide"
}
}
spec {
selector = {
app = "keyoxide"
}
ip_family_policy = "SingleStack"
ip_families = ["IPv4"]
type = "ClusterIP"
cluster_ip = "None"
# external_traffic_policy = "Local"
port {
name = "http"
port = 3000
target_port = 3000
protocol = "TCP"
}
}
}