core-deployments/woodpecker/grpc-ingress/ingress.yaml
Aaron Riedel 00a2423bdf
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
[woodpecker] seperate service to make grpc work
2024-10-16 21:57:05 +02:00

43 lines
1,013 B
YAML

---
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
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
traefik.ingress.kubernetes.io/loadbalancer.server.scheme: h2c
traefik.ingress.kubernetes.io/service.serversscheme: h2c
name: woodpecker-grpc
namespace: woodpecker
spec:
rules:
- host: "woodpecker-grpc.apps.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: woodpecker-grpc
port:
name: grpc
tls:
- hosts:
- woodpecker-grpc.apps.yolokube.de
secretName: woodpecker-grpc-tls-key