gitops/ghost: add httproute resource aka gatewayApi instead of ingress

This commit is contained in:
Jan Novak
2026-02-20 02:13:09 +01:00
parent 1cd7625220
commit dc947165a4
3 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: ghost-on-kubernetes-redirect
namespace: ghost-on-kubernetes
labels:
app: ghost-on-kubernetes
app.kubernetes.io/name: ghost-on-kubernetes-httproute
app.kubernetes.io/instance: ghost-on-kubernetes
app.kubernetes.io/version: '6.0'
app.kubernetes.io/component: httproute
app.kubernetes.io/part-of: ghost-on-kubernetes
spec:
parentRefs:
- name: cilium-gateway
namespace: kube-system
sectionName: http
hostnames:
- ghost.lab.home.hrajfrisbee.cz
rules:
- matches:
- path:
type: PathPrefix
value: /
filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301

View File

@@ -15,6 +15,7 @@ spec:
parentRefs: parentRefs:
- name: cilium-gateway - name: cilium-gateway
namespace: kube-system namespace: kube-system
sectionName: lab-home-hrajfrisbee-https-wildcard
hostnames: hostnames:
- ghost.lab.home.hrajfrisbee.cz - ghost.lab.home.hrajfrisbee.cz
rules: rules:
@@ -24,4 +25,5 @@ spec:
value: / value: /
backendRefs: backendRefs:
- name: ghost-on-kubernetes-service - name: ghost-on-kubernetes-service
namespace: ghost-on-kubernetes
port: 2368 port: 2368

View File

@@ -25,7 +25,7 @@ spec:
http: http:
paths: paths:
- path: / - path: /
pathType: ImplementationSpecific pathType: Prefix
backend: backend:
service: service:
name: ghost-on-kubernetes-service name: ghost-on-kubernetes-service