diff --git a/parrot/charts/parrot/templates/service.yaml b/parrot/charts/parrot/templates/service.yaml index bce6eec..7635872 100644 --- a/parrot/charts/parrot/templates/service.yaml +++ b/parrot/charts/parrot/templates/service.yaml @@ -14,4 +14,8 @@ spec: targetPort: {{ .Values.service.internalPort }} selector: app: {{ template "fullname" . }} - type: ClusterIP \ No newline at end of file +{{ if .Values.ingress.enabled }} + type: ClusterIP +{{ else }} + type: LoadBalancer +{{ end }} \ No newline at end of file