Skip to content
Merged
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
8 changes: 4 additions & 4 deletions examples/httpbin/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ spec:
selector:
app: httpbin-deployment
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
- name: http
port: 80
protocol: TCP
targetPort: 80
type: ClusterIP
26 changes: 13 additions & 13 deletions examples/httpbin/httproute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
type: ControlPlane
controlPlane:
endpoints:
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
auth:
type: AdminKey
adminKey:
Expand All @@ -31,9 +31,9 @@ metadata:
spec:
gatewayClassName: apisix
listeners:
- name: http
protocol: HTTP
port: 80
- name: http
protocol: HTTP
port: 80
infrastructure:
parametersRef:
group: apisix.apache.org
Expand All @@ -48,14 +48,14 @@ metadata:
name: httpbin
spec:
parentRefs:
- name: apisix
- name: apisix
hostnames:
- httpbin.example.com
- httpbin.example.com
rules:
- matches:
- path:
type: PathPrefix
value: /*
backendRefs:
- name: httpbin
port: 80
- matches:
- path:
type: PathPrefix
value: /*
backendRefs:
- name: httpbin
port: 80
22 changes: 11 additions & 11 deletions examples/httpbin/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
type: ControlPlane
controlPlane:
endpoints:
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
auth:
type: AdminKey
adminKey:
Expand Down Expand Up @@ -38,13 +38,13 @@ metadata:
spec:
ingressClassName: apisix
rules:
- host: httpbin.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: httpbin
port:
number: 80
- host: httpbin.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: httpbin
port:
number: 80
36 changes: 18 additions & 18 deletions examples/httpbin/quickstart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ spec:
selector:
app: httpbin-deployment
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
- name: http
port: 80
protocol: TCP
targetPort: 80
type: ClusterIP

---
---

apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
Expand All @@ -74,7 +74,7 @@ spec:
type: ControlPlane
controlPlane:
endpoints:
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
auth:
type: AdminKey
adminKey:
Expand All @@ -89,9 +89,9 @@ metadata:
spec:
gatewayClassName: apisix
listeners:
- name: http
protocol: HTTP
port: 80
- name: http
protocol: HTTP
port: 80
infrastructure:
parametersRef:
group: apisix.apache.org
Expand All @@ -106,14 +106,14 @@ metadata:
name: httpbin
spec:
parentRefs:
- name: apisix
- name: apisix
hostnames:
- httpbin.example.com
- httpbin.example.com
rules:
- matches:
- path:
type: PathPrefix
value: /*
backendRefs:
- name: httpbin
port: 80
- matches:
- path:
type: PathPrefix
value: /*
backendRefs:
- name: httpbin
port: 80
6 changes: 3 additions & 3 deletions examples/httpbin/service-rewrite-host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
name: httpbin
spec:
targetRefs:
- name: httpbin
kind: Service
group: ""
- name: httpbin
kind: Service
group: ""
passHost: rewrite
upstreamHost: httpbin.example.com
6 changes: 3 additions & 3 deletions examples/httpbin/service-timeout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ metadata:
name: httpbin
spec:
targetRefs:
- name: httpbin
kind: Service
group: ""
- name: httpbin
kind: Service
group: ""
timeout:
send: 10s
read: 10s
Expand Down
Loading