-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat-service.yaml
35 lines (35 loc) · 1.16 KB
/
chat-service.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: v1
kind: Service
metadata:
annotations:
# kompose.cmd: kompose convert
# kompose.version: 1.26.1 (HEAD)
# traefik.enable: "true"
# traefik.http.routers.random-chat-grpc.entrypoints: web
# traefik.http.routers.random-chat-grpc.rule: Headers(`content-type`,`application/grpc`) && Headers(`service-id`, `chat`)
# traefik.http.routers.random-chat-grpc.service: random-chat-grpc
# traefik.http.routers.random-chat.entrypoints: web
# traefik.http.routers.random-chat.rule: PathPrefix(`/api`)
# traefik.http.routers.random-chat.service: random-chat
# traefik.http.services.random-chat-grpc.loadbalancer.server.port: "4000"
# # traefik.http.services.random-chat-grpc.loadbalancer.server.scheme: h2c
# traefik.http.services.random-chat.loadbalancer.server.port: "80"
creationTimestamp: null
labels:
io.kompose.service: random-chat
name: random-chat
spec:
type: NodePort
ports:
- name: "chat-http"
port: 80
targetPort: 80
nodePort: 31625
- name: "chat-rpc"
port: 4000
targetPort: 4000
nodePort: 31626
selector:
io.kompose.service: random-chat
status:
loadBalancer: {}