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
File renamed without changes.
27 changes: 24 additions & 3 deletions examples/httproute/route.yaml → examples/httpbin/httproute.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@

apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
name: api7
spec:
controllerName: "gateway.api7.io/api7-ingress-controller"
controllerName: "gateway.apisix.io/api7-ingress-controller"

---

apiVersion: gateway.apisix.io/v1alpha1
kind: GatewayProxy
metadata:
name: api7-proxy-config
spec:
provider:
type: ControlPlane
controlPlane:
endpoints:
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
auth:
type: AdminKey
adminKey:
value: "${ADMIN_KEY}"

---

Expand All @@ -18,8 +34,13 @@ spec:
- name: http
protocol: HTTP
port: 80
infrastructure:
parametersRef:
group: gateway.apisix.io
kind: GatewayProxy
name: api7-proxy-config

---
---

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
Expand Down
50 changes: 50 additions & 0 deletions examples/httpbin/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
apiVersion: gateway.apisix.io/v1alpha1
kind: GatewayProxy
metadata:
name: api7-proxy-config
namespace: default
spec:
provider:
type: ControlPlane
controlPlane:
endpoints:
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
auth:
type: AdminKey
adminKey:
value: "${ADMIN_KEY}"

---

apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
name: api7
spec:
controller: "gateway.apisix.io/api7-ingress-controller"
parameters:
apiGroup: "gateway.apisix.io"
kind: "GatewayProxy"
name: "api7-proxy-config"
namespace: "default"
scope: "Namespace"

---

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: api7-ingress-tls
spec:
ingressClassName: api7
rules:
- host: httpbin.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: httpbin
port:
number: 80
27 changes: 24 additions & 3 deletions examples/quickstart.yaml → examples/httpbin/quickstart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,24 @@ kind: GatewayClass
metadata:
name: api7
spec:
controllerName: "gateway.api7.io/api7-ingress-controller"
controllerName: "gateway.apisix.io/api7-ingress-controller"

---

apiVersion: gateway.apisix.io/v1alpha1
kind: GatewayProxy
metadata:
name: api7-proxy-config
spec:
provider:
type: ControlPlane
controlPlane:
endpoints:
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
auth:
type: AdminKey
adminKey:
value: "${ADMIN_KEY}"

---

Expand All @@ -75,8 +92,13 @@ spec:
- name: http
protocol: HTTP
port: 80
infrastructure:
parametersRef:
group: gateway.apisix.io
kind: GatewayProxy
name: api7-proxy-config

---
---

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
Expand All @@ -95,4 +117,3 @@ spec:
backendRefs:
- name: httpbin
port: 80

11 changes: 11 additions & 0 deletions examples/httpbin/service-rewrite-host.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: gateway.apisix.io/v1alpha1
kind: BackendTrafficPolicy
metadata:
name: httpbin
spec:
targetRefs:
- name: httpbin
kind: Service
group: ""
passHost: rewrite
upstreamHost: httpbin.example.com
13 changes: 13 additions & 0 deletions examples/httpbin/service-timeout.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: gateway.apisix.io/v1alpha1
kind: BackendTrafficPolicy
metadata:
name: httpbin
spec:
targetRefs:
- name: httpbin
kind: Service
group: ""
timeout:
send: 10s
read: 10s
connect: 10s
Loading