|
| 1 | +apiVersion: gateway.networking.k8s.io/v1 |
| 2 | +kind: Gateway |
| 3 | +metadata: |
| 4 | + annotations: |
| 5 | + gateway.networking.k8s.io/generator: ingress2gateway-dev |
| 6 | + name: nginx |
| 7 | + namespace: default |
| 8 | +spec: |
| 9 | + gatewayClassName: kgateway |
| 10 | + listeners: |
| 11 | + - hostname: app1.example.org |
| 12 | + name: app1-example-org-http |
| 13 | + port: 80 |
| 14 | + protocol: HTTP |
| 15 | + - hostname: app2.example.org |
| 16 | + name: app2-example-org-http |
| 17 | + port: 80 |
| 18 | + protocol: HTTP |
| 19 | + - hostname: app3.example.org |
| 20 | + name: app3-example-org-http |
| 21 | + port: 80 |
| 22 | + protocol: HTTP |
| 23 | +status: {} |
| 24 | +--- |
| 25 | +apiVersion: gateway.networking.k8s.io/v1 |
| 26 | +kind: HTTPRoute |
| 27 | +metadata: |
| 28 | + annotations: |
| 29 | + gateway.networking.k8s.io/generator: ingress2gateway-dev |
| 30 | + name: ingress-basic-auth-file-default-app1-example-org |
| 31 | + namespace: default |
| 32 | +spec: |
| 33 | + hostnames: |
| 34 | + - app1.example.org |
| 35 | + parentRefs: |
| 36 | + - name: nginx |
| 37 | + rules: |
| 38 | + - backendRefs: |
| 39 | + - name: app1 |
| 40 | + port: 80 |
| 41 | + matches: |
| 42 | + - path: |
| 43 | + type: PathPrefix |
| 44 | + value: / |
| 45 | +status: |
| 46 | + parents: [] |
| 47 | +--- |
| 48 | +apiVersion: gateway.networking.k8s.io/v1 |
| 49 | +kind: HTTPRoute |
| 50 | +metadata: |
| 51 | + annotations: |
| 52 | + gateway.networking.k8s.io/generator: ingress2gateway-dev |
| 53 | + name: ingress-basic-auth-file-explicit-app2-example-org |
| 54 | + namespace: default |
| 55 | +spec: |
| 56 | + hostnames: |
| 57 | + - app2.example.org |
| 58 | + parentRefs: |
| 59 | + - name: nginx |
| 60 | + rules: |
| 61 | + - backendRefs: |
| 62 | + - name: app2 |
| 63 | + port: 80 |
| 64 | + matches: |
| 65 | + - path: |
| 66 | + type: PathPrefix |
| 67 | + value: / |
| 68 | +status: |
| 69 | + parents: [] |
| 70 | +--- |
| 71 | +apiVersion: gateway.networking.k8s.io/v1 |
| 72 | +kind: HTTPRoute |
| 73 | +metadata: |
| 74 | + annotations: |
| 75 | + gateway.networking.k8s.io/generator: ingress2gateway-dev |
| 76 | + name: ingress-basic-auth-map-app3-example-org |
| 77 | + namespace: default |
| 78 | +spec: |
| 79 | + hostnames: |
| 80 | + - app3.example.org |
| 81 | + parentRefs: |
| 82 | + - name: nginx |
| 83 | + rules: |
| 84 | + - backendRefs: |
| 85 | + - name: app3 |
| 86 | + port: 80 |
| 87 | + matches: |
| 88 | + - path: |
| 89 | + type: PathPrefix |
| 90 | + value: / |
| 91 | +status: |
| 92 | + parents: [] |
| 93 | +--- |
| 94 | +apiVersion: gateway.kgateway.dev/v1alpha1 |
| 95 | +kind: TrafficPolicy |
| 96 | +metadata: |
| 97 | + name: ingress-basic-auth-file-default |
| 98 | + namespace: default |
| 99 | +spec: |
| 100 | + basicAuth: |
| 101 | + secretRef: |
| 102 | + key: auth |
| 103 | + name: basic-auth-secret |
| 104 | + targetRefs: |
| 105 | + - group: gateway.networking.k8s.io |
| 106 | + kind: HTTPRoute |
| 107 | + name: ingress-basic-auth-file-default-app1-example-org |
| 108 | +status: |
| 109 | + ancestors: null |
| 110 | +--- |
| 111 | +apiVersion: gateway.kgateway.dev/v1alpha1 |
| 112 | +kind: TrafficPolicy |
| 113 | +metadata: |
| 114 | + name: ingress-basic-auth-file-explicit |
| 115 | + namespace: default |
| 116 | +spec: |
| 117 | + basicAuth: |
| 118 | + secretRef: |
| 119 | + key: auth |
| 120 | + name: basic-auth-secret |
| 121 | + targetRefs: |
| 122 | + - group: gateway.networking.k8s.io |
| 123 | + kind: HTTPRoute |
| 124 | + name: ingress-basic-auth-file-explicit-app2-example-org |
| 125 | +status: |
| 126 | + ancestors: null |
| 127 | +--- |
| 128 | +apiVersion: gateway.kgateway.dev/v1alpha1 |
| 129 | +kind: TrafficPolicy |
| 130 | +metadata: |
| 131 | + name: ingress-basic-auth-map |
| 132 | + namespace: default |
| 133 | +spec: |
| 134 | + basicAuth: |
| 135 | + secretRef: |
| 136 | + name: auth-map-secret |
| 137 | + targetRefs: |
| 138 | + - group: gateway.networking.k8s.io |
| 139 | + kind: HTTPRoute |
| 140 | + name: ingress-basic-auth-map-app3-example-org |
| 141 | +status: |
| 142 | + ancestors: null |
0 commit comments