k8s-basic/helm-chart/templates/service.yaml
Waylon S. Walker f8b377c347 init
2025-02-22 16:48:19 -06:00

14 lines
328 B
YAML

apiVersion: v1
kind: Service
metadata:
labels:
service: {{ .Values.name }}
name: {{ .Values.name }}
namespace: {{ .Values.namespace | default .Values.name }}
spec:
ports:
- name: "{{ .Values.port }}"
port: {{ .Values.port }}
targetPort: {{ .Values.port }}
selector:
service: {{ .Values.name }}