From 00a2423bdfe1e19191fb525a404dbe8b704a2fa0 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Wed, 16 Oct 2024 21:57:05 +0200 Subject: [PATCH] [woodpecker] seperate service to make grpc work --- woodpecker/grpc-ingress/ingress.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/woodpecker/grpc-ingress/ingress.yaml b/woodpecker/grpc-ingress/ingress.yaml index 63746f6..1fcc5a3 100644 --- a/woodpecker/grpc-ingress/ingress.yaml +++ b/woodpecker/grpc-ingress/ingress.yaml @@ -1,9 +1,27 @@ --- +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 @@ -16,7 +34,7 @@ spec: path: "/" backend: service: - name: woodpecker-server + name: woodpecker-grpc port: name: grpc tls: