generated from kedacore/github-template
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
document GatewayAPI example with xkcd application (#1040)
Signed-off-by: Jan Wozniak <wozniak.jan@gmail.com> Co-authored-by: Jorge Turrado Ferrero <jorge.turrado@scrm.lidl>
- Loading branch information
1 parent
30e7571
commit 9f82ff9
Showing
2 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{{- if .Values.httproute }} | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: {{ include "xkcd.fullname" . }} | ||
spec: | ||
parentRefs: | ||
- name: eg | ||
namespace: envoy-gateway-system | ||
hostnames: | ||
{{- range .Values.hosts }} | ||
- {{ . | toString }} | ||
{{- end }} | ||
rules: | ||
- backendRefs: | ||
- kind: Service | ||
name: keda-add-ons-http-interceptor-proxy | ||
namespace: keda | ||
port: 8080 | ||
matches: | ||
- path: | ||
type: PathPrefix | ||
value: / | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1beta1 | ||
kind: ReferenceGrant | ||
metadata: | ||
name: {{ include "xkcd.fullname" . }} | ||
namespace: keda | ||
spec: | ||
from: | ||
- group: gateway.networking.k8s.io | ||
kind: HTTPRoute | ||
namespace: {{ .Release.Namespace }} | ||
to: | ||
- group: "" | ||
kind: Service | ||
name: keda-add-ons-http-interceptor-proxy | ||
{{- end }} |