2024-10-16 21:01:40 +02:00
|
|
|
---
|
2024-10-16 21:57:05 +02:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: woodpecker-grpc
|
|
|
|
namespace: woodpecker
|
|
|
|
annotations:
|
|
|
|
traefik.ingress.kubernetes.io/service.serversscheme: h2c
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/instance: woodpecker
|
|
|
|
app.kubernetes.io/name: server
|
|
|
|
ports:
|
|
|
|
- name: grpc
|
|
|
|
protocol: TCP
|
|
|
|
port: 9000
|
|
|
|
targetPort: grpc
|
|
|
|
---
|
2024-12-22 18:16:44 +01:00
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
kind: IngressRoute
|
2024-10-16 21:01:40 +02:00
|
|
|
metadata:
|
|
|
|
namespace: woodpecker
|
2024-12-22 18:16:44 +01:00
|
|
|
name: woodpecker-grpc
|
2024-10-16 21:01:40 +02:00
|
|
|
spec:
|
2024-12-22 18:16:44 +01:00
|
|
|
entryPoints:
|
|
|
|
- websecure
|
|
|
|
routes:
|
|
|
|
- kind: Rule
|
|
|
|
match: Host(`woodpecker-grpc.apps.yolokube.de`) && Header(`Content-Type`, `application/grpc`)
|
|
|
|
services:
|
|
|
|
- name: woodpecker-grpc
|
|
|
|
port: grpc
|
|
|
|
scheme: h2c
|
2024-10-16 21:01:40 +02:00
|
|
|
tls:
|
2024-12-22 18:16:44 +01:00
|
|
|
secretName: woodpecker-grpc-tls-key
|