blob: 818c5828aaa8520beb3dd37df1b166fef9ec6845 [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: ReplicationController
20metadata:
21 name: prometheus-cdn-rc
22spec:
23 replicas: 1
24 selector:
25 app: prometheus-cdn
26 template:
27 metadata:
28 name: prometheus-cdn
29 labels:
30 app: prometheus-cdn
31 spec:
32 nodeSelector:
33 kubernetes.io/hostname: {{ .Values.prometheus.node_selector }}
34 containers:
35 - args:
36 - --config.file=/etc/prometheus/config_out/prometheus.yml
37 name: prometheus
38 image: {{ .Values.prometheus.image }}
39 ports:
40 - containerPort: 9090
41 volumeMounts:
42 - mountPath: /etc/prometheus/config_out
43 name: prometheus-volume
44 volumes:
45 - name: prometheus-volume
46 configMap:
47 name: prometheus-config
48
49{{- end }}