cuddle-rust-service-plan/templates/clusters/service.yaml.jinja2
kjuulh ef737418c3
Some checks reported errors
continuous-integration/drone/push Build encountered an error
feat: remove nesting
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-05-27 22:50:51 +02:00

26 lines
578 B
Django/Jinja

{%- set service_name = vars.cuddle_vars.service -%}
{%- set cluster_name = vars.cluster_vars.name -%}
{%- set cluster_namespace = vars.cluster_vars.namespace -%}
apiVersion: v1
kind: Service
metadata:
name: "{{ service_name }}"
namespace: {{ cluster_namespace }}
spec:
selector:
app: {{ service_name }}
cluster: {{ cluster_name }}
type: LoadBalancer
ports:
- name: external-http
port: 3000
targetPort: 3000
- name: internal-http
port: 3001
targetPort: 3001
- name: internal-grpc
port: 3002
targetPort: 3002