diff --git a/devops/gcp/deploy/templates/service.yaml b/devops/gcp/deploy/templates/service.yaml index a56e209a91c1a3b3f0c258ed31c59fc8df1dbfef..0e9843b971c8fc8868ae2e22d1ad6483a5628c94 100644 --- a/devops/gcp/deploy/templates/service.yaml +++ b/devops/gcp/deploy/templates/service.yaml @@ -2,6 +2,10 @@ apiVersion: v1 kind: Service metadata: name: "{{ .Values.conf.appName }}" + {{- if not .Values.conf.onPremEnabled }} + annotations: + cloud.google.com/neg: '{"ingress": true}' + {{- end }} namespace: "{{ .Release.Namespace }}" labels: app: "{{ .Values.conf.appName }}"