aboutsummaryrefslogtreecommitdiffstats
path: root/docs/sections/resources/yaml/keycloak-ingress.yaml
blob: 91fc34f381a9bbac5322d13cefbabe2011516d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  labels:
    app.kubernetes.io/managed-by: Helm
  name: keycloak-ui-http-route
  namespace: keycloak
spec:
  hostnames:
  - keycloak-ui.simpledemo.onap.org
  parentRefs:
  - group: gateway.networking.k8s.io
    kind: Gateway
    name: common-gateway
    namespace: istio-ingress
    sectionName: https-80
  rules:
    Filters:
      Request Redirect:
        Port:         443
        Scheme:       https
        Status Code:  301
      Type:           RequestRedirect
    Matches:
      Path:
        Type:   PathPrefix
        Value:  /auth
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  labels:
    app.kubernetes.io/managed-by: Helm
  name: keycloak-ui-http-route
  namespace: keycloak
spec:
  hostnames:
  - keycloak-ui.simpledemo.onap.org
  parentRefs:
  - group: gateway.networking.k8s.io
    kind: Gateway
    name: common-gateway
    namespace: istio-ingress
    sectionName: https-443
  rules:
  - backendRefs:
    - group: ""
      kind: Service
      name: keycloak-keycloakx-http
      port: 80
      weight: 1
    matches:
    - path:
        type: PathPrefix
        value: /auth