mirror of
https://github.com/gwg313/homelab-gitops.git
synced 2026-06-13 00:54:31 +00:00
squash me
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
e1f38204c6
commit
da4db84cad
5 changed files with 36 additions and 67 deletions
|
|
@ -1,14 +0,0 @@
|
|||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: forgejo-cert
|
||||
namespace: istio-system
|
||||
spec:
|
||||
secretName: forgejo-cert
|
||||
issuerRef:
|
||||
name: letsencrypt-dns
|
||||
kind: ClusterIssuer
|
||||
dnsNames:
|
||||
- git.local.gwg313.xyz
|
||||
- git.gwg313.xyz
|
||||
- git.zerotier.gwg313.xyz
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: DestinationRule
|
||||
metadata:
|
||||
name: forgejo
|
||||
namespace: forgejo
|
||||
spec:
|
||||
host: forgejo.forgejo.svc.cluster.local
|
||||
trafficPolicy:
|
||||
outlierDetection:
|
||||
consecutive5xxErrors: 1
|
||||
interval: 5s
|
||||
baseEjectionTime: 30s
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: forgejo-gateway
|
||||
namespace: forgejo
|
||||
spec:
|
||||
selector:
|
||||
app: istio-ingressgateway
|
||||
servers:
|
||||
- port:
|
||||
number: 443
|
||||
name: https
|
||||
protocol: HTTPS
|
||||
tls:
|
||||
mode: SIMPLE
|
||||
credentialName: forgejo-cert
|
||||
hosts:
|
||||
- git.local.gwg313.xyz
|
||||
- git.gwg313.xyz
|
||||
- git.zerotier.gwg313.xyz
|
||||
36
forgejo/route.yaml
Normal file
36
forgejo/route.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: forgejo
|
||||
namespace: forgejo
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: shared-edge-gateway
|
||||
namespace: cilium-ingress
|
||||
hostnames:
|
||||
- git.local.gwg313.xyz
|
||||
- git.gwg313.xyz
|
||||
- git.zerotier.gwg313.xyz
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: forgejo
|
||||
port: 80 # 👈 Flattened directly to an integer, matching the Gateway API spec
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1beta1
|
||||
kind: ReferenceGrant
|
||||
metadata:
|
||||
name: allow-gateway-to-forgejo
|
||||
namespace: forgejo
|
||||
spec:
|
||||
from:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
namespace: cilium-ingress
|
||||
to:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: forgejo
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: forgejo
|
||||
namespace: forgejo
|
||||
spec:
|
||||
hosts:
|
||||
- git.local.gwg313.xyz
|
||||
- git.gwg313.xyz
|
||||
- git.zerotier.gwg313.xyz
|
||||
gateways:
|
||||
- forgejo-gateway
|
||||
http:
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /
|
||||
route:
|
||||
- destination:
|
||||
host: forgejo.forgejo.svc.cluster.local
|
||||
port:
|
||||
number: 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue