diff options
author | 2019-03-15 11:56:54 -0400 | |
---|---|---|
committer | 2019-03-15 11:56:54 -0400 | |
commit | 99c4495bd4eb4b1bb01cc483f5d9ade58843d91a (patch) | |
tree | ceb9ed28f275b9514eca11cc0d9196a0b7c30222 /engine/kubernetes/org-onap-fgps-dev/templates/service.yaml | |
parent | 2f7fe5df5de5014f2d54422eccc8bc2a4e13fd8e (diff) |
Initial upload of F-GPS seed code 1/21
Includes:
Base license for project and engine
Engine dockerfile
Engine sample helm chart
Engine sample config directory
Change-Id: I034927aed57d8f48de44a0aae9be34e46d7db5ac
Issue-ID: OPTFRA-440
Signed-off-by: arthur.martella.1@att.com
Diffstat (limited to 'engine/kubernetes/org-onap-fgps-dev/templates/service.yaml')
-rwxr-xr-x | engine/kubernetes/org-onap-fgps-dev/templates/service.yaml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/engine/kubernetes/org-onap-fgps-dev/templates/service.yaml b/engine/kubernetes/org-onap-fgps-dev/templates/service.yaml new file mode 100755 index 0000000..8b9d1d0 --- /dev/null +++ b/engine/kubernetes/org-onap-fgps-dev/templates/service.yaml @@ -0,0 +1,41 @@ +# Copyright © 2019 AT&T +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +apiVersion: v1 +kind: Service +metadata: + name: {{ .Chart.Name }} + namespace: {{ .Values.global.ns }} + labels: + app: {{ .Chart.Name }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} + annotations: +spec: + type: {{ .Values.service.type }} + ports: + {{if eq .Values.service.type "NodePort" -}} + - port: {{ .Values.service.externalPort }} + nodePort: {{ .Values.service.nodePort }} + name: {{ .Values.service.portName }} + {{- else -}} + - port: {{ .Values.service.externalPort }} + targetPort: {{ .Values.service.internalPort }} + name: {{ .Values.service.portName }} + {{- end}} + selector: + app: {{ .Chart.Name }} + release: {{ .Release.Name }} + |