gitops/ghost: add httproute resource aka gatewayApi instead of ingress
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user