core-deployments/woodpecker/grpc-ingress/ingress.yaml

44 lines
1,013 B
YAML
Raw Permalink Normal View History

2024-10-16 21:01:40 +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-10-16 21:01:40 +02:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
traefik.ingress.kubernetes.io/loadbalancer.server.scheme: h2c
2024-10-16 21:01:40 +02:00
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
2024-10-16 21:01:40 +02:00
port:
name: grpc
tls:
- hosts:
- woodpecker-grpc.apps.yolokube.de
secretName: woodpecker-grpc-tls-key