27623af8f9
- Expose UDP 24454 on mudcraft pod and Service (Simple Voice Chat) - Add Traefik voicechat UDP entrypoint on port 24454 - Add IngressRouteUDP to route external UDP 24454 → mudcraft service
38 lines
847 B
Terraform
38 lines
847 B
Terraform
# Traefik configuration — global HTTP→HTTPS redirect
|
|
# Applied via k3s HelmChartConfig (managed outside of Helm provider)
|
|
|
|
resource "kubernetes_manifest" "traefik_config" {
|
|
field_manager {
|
|
force_conflicts = true
|
|
}
|
|
|
|
manifest = {
|
|
apiVersion = "helm.cattle.io/v1"
|
|
kind = "HelmChartConfig"
|
|
metadata = {
|
|
name = "traefik"
|
|
namespace = "kube-system"
|
|
}
|
|
spec = {
|
|
valuesContent = <<-YAML
|
|
ports:
|
|
web:
|
|
redirectTo:
|
|
port: websecure
|
|
minecraft:
|
|
port: 25565
|
|
expose:
|
|
default: true
|
|
exposedPort: 25565
|
|
protocol: TCP
|
|
voicechat:
|
|
port: 24454
|
|
expose:
|
|
default: true
|
|
exposedPort: 24454
|
|
protocol: UDP
|
|
YAML
|
|
}
|
|
}
|
|
}
|