Initial Version of Helm Chart for OpenDaylight
[integration/packaging.git] / helm / opendaylight / templates / service.yaml
1 {{/*
2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2021 The Linux Foundation and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11 */}}
12
13 apiVersion: v1
14 kind: Service
15 metadata:
16   name: {{ include "opendaylight.fullname" . }}
17   labels:
18     {{- include "opendaylight.labels" . | nindent 4 }}
19 spec:
20   type: {{ .Values.service.type }}
21   ports:
22     - port: {{ .Values.service.port }}
23       targetPort: http
24       protocol: TCP
25       name: http
26   clusterIP: None
27   selector:
28     {{- include "opendaylight.selectorLabels" . | nindent 4 }}