Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion examples/example-workload/gatewayapi/kuard/kuard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,19 @@ spec:
app: kuard
spec:
containers:
- image: gcr.io/kuar-demo/kuard-amd64:1
# gcr.io/kuar-demo/kuard-amd64 is no longer available upstream
# (https://github.com/kubernetes-up-and-running/kuard/issues/59),
# so this example now runs a small echo server on port 8080 instead
# (same image already used by the blue-green example).
- image: stevesloka/echo-server
name: kuard
command: ["echo-server"]
args:
- --echotext=kuard
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
---
apiVersion: v1
kind: Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@ spec:
app: kuard
spec:
containers:
- image: gcr.io/kuar-demo/kuard-amd64:1
# gcr.io/kuar-demo/kuard-amd64 is no longer available upstream
# (https://github.com/kubernetes-up-and-running/kuard/issues/59),
# so this example now runs a small echo server on port 8080 instead
# (same image already used by the blue-green example).
- image: stevesloka/echo-server
name: kuard
command: ["echo-server"]
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
---
apiVersion: apps/v1
kind: Deployment
Expand All @@ -33,5 +42,14 @@ spec:
app: kuard
spec:
containers:
- image: gcr.io/kuar-demo/kuard-amd64:1
# gcr.io/kuar-demo/kuard-amd64 is no longer available upstream
# (https://github.com/kubernetes-up-and-running/kuard/issues/59),
# so this example now runs a small echo server on port 8080 instead
# (same image already used by the blue-green example).
- image: stevesloka/echo-server
name: kuard
command: ["echo-server"]
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
6 changes: 3 additions & 3 deletions site/content/docs/main/guides/gateway-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ $ kubectl apply -f {{< param github_raw_url>}}/{{< param branch >}}/examples/exa
```
This command creates:

- A Deployment named `kuard` in the default namespace to run kuard as the test application.
- A Service named `kuard` in the default namespace to expose the kuard application on TCP port 80.
- An HTTPRoute named `kuard` in the default namespace, attached to the `contour` Gateway, to route requests for `local.projectcontour.io` to the kuard service.
- A Deployment named `kuard` in the default namespace to run a small echo server as the test application.
- A Service named `kuard` in the default namespace to expose the test application on TCP port 80.
- An HTTPRoute named `kuard` in the default namespace, attached to the `contour` Gateway, to route requests for `local.projectcontour.io` to the `kuard` service.

Verify the kuard resources are available:
```shell
Expand Down