mirror of
https://github.com/gwg313/homelab-gitops.git
synced 2026-06-26 02:40:13 +00:00
add tekton
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
bfce08329d
commit
933b93da76
23 changed files with 199 additions and 111 deletions
|
|
@ -1,12 +0,0 @@
|
|||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: woodpecker-cert
|
||||
namespace: istio-system
|
||||
spec:
|
||||
secretName: woodpecker-cert
|
||||
issuerRef:
|
||||
name: letsencrypt-dns
|
||||
kind: ClusterIssuer
|
||||
dnsNames:
|
||||
- ci.gwg313.xyz
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: woodpecker-gateway
|
||||
namespace: woodpecker
|
||||
spec:
|
||||
selector:
|
||||
istio: gateway
|
||||
servers:
|
||||
- port:
|
||||
number: 443
|
||||
name: https
|
||||
protocol: HTTPS
|
||||
tls:
|
||||
mode: SIMPLE
|
||||
credentialName: woodpecker-cert
|
||||
hosts:
|
||||
- ci.gwg313.xyz
|
||||
41
woodpecker/route.yaml
Normal file
41
woodpecker/route.yaml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: woodpecker
|
||||
namespace: woodpecker
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: shared-edge-gateway
|
||||
namespace: cilium-ingress
|
||||
|
||||
hostnames:
|
||||
- ci.local.gwg313.xyz
|
||||
- ci.gwg313.xyz
|
||||
- ci.zerotier.gwg313.xyz
|
||||
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: woodpecker-server
|
||||
port: 80
|
||||
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1beta1
|
||||
kind: ReferenceGrant
|
||||
metadata:
|
||||
name: allow-gateway-to-woodpecker
|
||||
namespace: woodpecker
|
||||
|
||||
spec:
|
||||
from:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
namespace: cilium-ingress
|
||||
|
||||
to:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: woodpecker-server
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: woodpecker
|
||||
namespace: woodpecker
|
||||
spec:
|
||||
selector:
|
||||
app: woodpecker
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8000
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: woodpecker
|
||||
namespace: woodpecker
|
||||
spec:
|
||||
gateways:
|
||||
- woodpecker-gateway
|
||||
hosts:
|
||||
- ci.gwg313.xyz
|
||||
http:
|
||||
- route:
|
||||
- destination:
|
||||
host: woodpecker-server
|
||||
port:
|
||||
number: 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue