18 lines
469 B
YAML
18 lines
469 B
YAML
{{- $ctx := dict "helm" . }}
|
|
{{- $fullname := include "vm.fullname" $ctx }}
|
|
{{- $ns := include "vm.namespace" $ctx }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ $fullname }}
|
|
namespace: {{ $ns }}
|
|
labels: {{ include "vm.labels" $ctx | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
name: http
|
|
selector: {{ include "vm.selectorLabels" $ctx | nindent 4 }}
|