2024-05-27 22:50:51 +02:00
|
|
|
{%- set service_name = vars.cuddle_vars.service -%}
|
|
|
|
{%- set cluster_name = vars.cluster_vars.name -%}
|
|
|
|
{%- set cluster_namespace = vars.cluster_vars.namespace -%}
|
|
|
|
|
2024-05-26 21:31:39 +02:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2024-05-27 22:50:51 +02:00
|
|
|
name: "{{ service_name }}"
|
|
|
|
namespace: {{ cluster_namespace }}
|
2024-05-26 21:31:39 +02:00
|
|
|
spec:
|
|
|
|
selector:
|
2024-05-27 22:50:51 +02:00
|
|
|
app: {{ service_name }}
|
|
|
|
cluster: {{ cluster_name }}
|
2024-05-26 21:31:39 +02:00
|
|
|
type: LoadBalancer
|
2024-05-27 22:50:51 +02:00
|
|
|
ports:
|
|
|
|
- name: external-http
|
|
|
|
port: 3000
|
|
|
|
targetPort: 3000
|
|
|
|
- name: internal-http
|
|
|
|
port: 3001
|
|
|
|
targetPort: 3001
|
|
|
|
- name: internal-grpc
|
|
|
|
port: 3002
|
|
|
|
targetPort: 3002
|
|
|
|
|