diff --git a/templates/service.yaml b/templates/service.yaml index 169dbdc..c6add61 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -16,7 +16,7 @@ metadata: {{- $svcDict := merge $svcDict (dict "annotations" $serviceDefinition.service.annotations "labels" $serviceDefinition.service.labels) -}} {{- include "common.metadata" ( dict "root" $root "service" $svcDict "serviceName" $serviceName ) | nindent 2 }} spec: - type: {{ $serviceDefinition.service.type }} + type: {{ $serviceDefinition.service.type | default "ClusterIP" }} {{- with $serviceDefinition.service.ports }} ports: {{- . | toYaml | nindent 4 }}