{{- define "service.port" -}} {{- if eq . "http" -}} 80 {{- else if eq . "grpc" -}} 8080 {{- else -}} 80 {{- end -}} {{- end -}} {{- define "service.targetport" -}} {{- if eq . "http" -}} 80 {{- else if eq . "grpc" -}} 8080 {{- else -}} 80 {{- end -}} {{- end -}}