blob: b9ebf6c3ebe7f45a0d8e062933983328a51d6345 [file] [log] [blame]
Doyoung Lee8f30e152019-05-21 16:23:07 -07001---
2# Copyright 2018-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16{{- if .Values.prometheus.enabled }}
17
18apiVersion: v1
19kind: Service
20metadata:
21 name: prometheus-cdn-service
22spec:
23 selector:
24 app: prometheus-cdn
25 type: NodePort
26 ports:
27 - name: prometheus
28 nodePort: {{ .Values.prometheus.nodePort }}
29 port: 9090
30 protocol: TCP
31 targetPort: 9090
32
33{{- end }}