Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
b016bfcc5d
commit
3baff7fe7c
@ -7,8 +7,6 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: "{{ service_name }}"
|
name: "{{ service_name }}"
|
||||||
namespace: {{ cluster_namespace }}
|
namespace: {{ cluster_namespace }}
|
||||||
annotations:
|
|
||||||
traefik.ingress.kubernetes.io/service.serversscheme: h2c
|
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: {{ service_name }}
|
app: {{ service_name }}
|
||||||
@ -21,6 +19,20 @@ spec:
|
|||||||
- name: internal-http
|
- name: internal-http
|
||||||
port: 3001
|
port: 3001
|
||||||
targetPort: 3001
|
targetPort: 3001
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: "{{ service_name }}-grpc"
|
||||||
|
namespace: {{ cluster_namespace }}
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/service.serversscheme: h2c
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: {{ service_name }}
|
||||||
|
cluster: {{ cluster_name }}
|
||||||
|
type: LoadBalancer
|
||||||
|
ports:
|
||||||
- name: external-grpc
|
- name: external-grpc
|
||||||
port: 4000
|
port: 4000
|
||||||
targetPort: 4000
|
targetPort: 4000
|
||||||
|
Loading…
Reference in New Issue
Block a user