generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #792 from youngnick/api-overview-update
site: Index and Overview update
- Loading branch information
Showing
8 changed files
with
476 additions
and
158 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
examples/v1alpha2/http-route-attachment/gateway-namespaces.yaml
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,19 @@ | ||
apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
kind: Gateway | ||
metadata: | ||
name: prod-gateway | ||
namespace: gateway-api-example-ns1 | ||
spec: | ||
gatewayClassName: foo-lb | ||
listeners: | ||
- name: prod-web | ||
port: 80 | ||
protocol: HTTP | ||
allowedRoutes: | ||
kinds: | ||
- kind: HTTPRoute | ||
namespaces: | ||
from: Selector | ||
selector: | ||
matchLabels: | ||
expose-apps: "true" |
21 changes: 21 additions & 0 deletions
21
examples/v1alpha2/http-route-attachment/gateway-strict.yaml
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,21 @@ | ||
apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
kind: Gateway | ||
metadata: | ||
name: foo-gateway | ||
namespace: gateway-api-example-ns1 | ||
spec: | ||
gatewayClassName: foo-lb | ||
listeners: | ||
- name: prod-web | ||
port: 80 | ||
protocol: HTTP | ||
allowedRoutes: | ||
kinds: | ||
- kind: HTTPRoute | ||
namespaces: | ||
from: Selector | ||
selector: | ||
matchLabels: | ||
# This label is added automatically as of K8s 1.22 | ||
# to all namespaces | ||
kubernetes.io/metadata.name: gateway-api-example-ns2 |
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,14 @@ | ||
apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
kind: HTTPRoute | ||
metadata: | ||
name: my-route | ||
namespace: gateway-api-example-ns2 | ||
spec: | ||
parentRefs: | ||
- kind: Gateway | ||
name: foo-gateway | ||
namespace: gateway-api-example-ns1 | ||
rules: | ||
- backendRefs: | ||
- name: foo-svc | ||
port: 8080 |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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