diff --git a/examples/httpbin/deployment.yaml b/examples/httpbin/deployment.yaml index 005e9d9fb6..5b44f60cb7 100644 --- a/examples/httpbin/deployment.yaml +++ b/examples/httpbin/deployment.yaml @@ -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 diff --git a/examples/httpbin/httproute.yaml b/examples/httpbin/httproute.yaml index b789b2dc49..7728eb7f0a 100644 --- a/examples/httpbin/httproute.yaml +++ b/examples/httpbin/httproute.yaml @@ -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: @@ -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 @@ -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 diff --git a/examples/httpbin/ingress.yaml b/examples/httpbin/ingress.yaml index 9e6b226a55..a3bc13d696 100644 --- a/examples/httpbin/ingress.yaml +++ b/examples/httpbin/ingress.yaml @@ -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: @@ -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 diff --git a/examples/httpbin/quickstart.yaml b/examples/httpbin/quickstart.yaml index 36efed0558..abd55cebf2 100644 --- a/examples/httpbin/quickstart.yaml +++ b/examples/httpbin/quickstart.yaml @@ -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 @@ -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: @@ -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 @@ -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 diff --git a/examples/httpbin/service-rewrite-host.yaml b/examples/httpbin/service-rewrite-host.yaml index e5bf0136e6..731b16c515 100644 --- a/examples/httpbin/service-rewrite-host.yaml +++ b/examples/httpbin/service-rewrite-host.yaml @@ -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 diff --git a/examples/httpbin/service-timeout.yaml b/examples/httpbin/service-timeout.yaml index a7da94db88..f926536dfa 100644 --- a/examples/httpbin/service-timeout.yaml +++ b/examples/httpbin/service-timeout.yaml @@ -4,9 +4,9 @@ metadata: name: httpbin spec: targetRefs: - - name: httpbin - kind: Service - group: "" + - name: httpbin + kind: Service + group: "" timeout: send: 10s read: 10s