Fixed compiled snippet not working

This commit is contained in:
2026-06-13 10:11:34 +08:00
parent 021655464d
commit 8702d252ff
16 changed files with 40 additions and 87 deletions
-40
View File
@@ -36,43 +36,3 @@ spec:
- port: 80
targetPort: 8080
name: http
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: astrojs-http-redirect
spec:
parentRefs:
- name: gateway-prod
namespace: cilium-system
sectionName: http
hostnames:
- "astrojs.k8s.astropenguin.net"
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
port: 443
statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: astrojs-https
spec:
parentRefs:
- name: gateway-prod
namespace: cilium-system
sectionName: k8s-astropenguin-net
hostnames:
- "astrojs.k8s.astropenguin.net"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: astrojs
namespace: default
port: 80