Skip to content

Commit

Permalink
feat: setup ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-langlet committed Apr 24, 2024
1 parent 4dbf7e0 commit 64b1c5a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions deployment/terraform/kube/network/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx
namespace: default
annotations:
ingress.kubernetes.io/ssl-redirect: "false"
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: keda-spinapp
port:
number: 80
4 changes: 4 additions & 0 deletions deployment/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,7 @@ resource "helm_release" "keda" {
repository = "https://kedacore.github.io/charts"
chart = "keda"
}

resource "kubernetes_manifest" "spin_app_ingress" {
manifest = yamldecode(file("${path.module}/kube/network/ingress.yaml"))
}

0 comments on commit 64b1c5a

Please sign in to comment.