[woodpecker] seperate service to make grpc work
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
This commit is contained in:
parent
97f07a7dbc
commit
00a2423bdf
1 changed files with 19 additions and 1 deletions
|
@ -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
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/tls-acme: "true"
|
kubernetes.io/tls-acme: "true"
|
||||||
|
traefik.ingress.kubernetes.io/loadbalancer.server.scheme: h2c
|
||||||
traefik.ingress.kubernetes.io/service.serversscheme: h2c
|
traefik.ingress.kubernetes.io/service.serversscheme: h2c
|
||||||
name: woodpecker-grpc
|
name: woodpecker-grpc
|
||||||
namespace: woodpecker
|
namespace: woodpecker
|
||||||
|
@ -16,7 +34,7 @@ spec:
|
||||||
path: "/"
|
path: "/"
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: woodpecker-server
|
name: woodpecker-grpc
|
||||||
port:
|
port:
|
||||||
name: grpc
|
name: grpc
|
||||||
tls:
|
tls:
|
||||||
|
|
Loading…
Reference in a new issue