Skip to content

Commit

Permalink
chore: Disable ssl redirect by default (#49)
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
  • Loading branch information
gaocegege authored Jul 24, 2023
1 parent df9d7f0 commit 08510fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ingress-operator/pkg/controller/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,13 @@ func MakeAnnotations(fni *faasv1.InferenceIngress, host string) map[string]strin
case "apiserver":
annotations["nginx.ingress.kubernetes.io/rewrite-target"] = "/api/v1/" + fni.Spec.Framework +
"/" + fni.Spec.Function + "/$1"
annotations["nginx.ingress.kubernetes.io/use-regex"] = "true"
default:
annotations["nginx.ingress.kubernetes.io/rewrite-target"] = "/inference/" + fni.Name + ".default" + "/$1"
annotations["nginx.ingress.kubernetes.io/ssl-redirect"] = "false"
annotations["nginx.ingress.kubernetes.io/use-regex"] = "true"
}
annotations["nginx.ingress.kubernetes.io/use-regex"] = "true"
break

}
}

Expand Down
2 changes: 1 addition & 1 deletion mdz/pkg/server/openmodelz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
chart: openmodelz
repo: https://tensorchord.github.io/openmodelz-charts
targetNamespace: openmodelz
version: 0.0.3
version: 0.0.6
set:
valuesContent: |-
fullnameOverride: openmodelz
Expand Down

0 comments on commit 08510fe

Please sign in to comment.