feat: add service
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
c93ee9823c
commit
7fc0d8c204
26
templates/clusters/service.yaml.jinja2
Normal file
26
templates/clusters/service.yaml.jinja2
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: {{ vars.cuddle_vars.service }}
|
||||||
|
cluster: {{ environment }}
|
||||||
|
name: {{ vars.cuddle_vars.service }}
|
||||||
|
namespace: {{ vars.cluster_vars.namespace }}
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: external-http
|
||||||
|
port: 3000
|
||||||
|
targetPort: 3000
|
||||||
|
- name: internal-http
|
||||||
|
port: 3001
|
||||||
|
targetPort: 3001
|
||||||
|
- name: internal-grpc
|
||||||
|
port: 3002
|
||||||
|
targetPort: 3002
|
||||||
|
- name: external-grpc
|
||||||
|
port: 7900
|
||||||
|
targetPort: 7900
|
||||||
|
selector:
|
||||||
|
app: {{ vars.cuddle_vars.service }}
|
||||||
|
cluster: {{ environment }}
|
||||||
|
type: LoadBalancer
|
Loading…
Reference in New Issue
Block a user