1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
17 # Default values for osm.
18 # This is a YAML-formatted file.
19 # Declare variables to be passed into your templates.
24 # hostname to be used for the ingress objects
27 repositoryBase: docker.io/opensourcemano
28 pullPolicy: IfNotPresent
29 # Overrides the image tag whose default is the chart appVersion.
37 # Specifies whether a service account should be created
39 # Annotations to add to the service account
41 # The name of the service account to use.
42 # If not set and create is true, a name is generated using the fullname template
61 behindHttpProxy: false
63 # HTTP_PROXY: <HTTP_PROXY>
64 # HTTPS_PROXY: <HTTPS_PROXY>
65 # NO_PROXY: <NO_PROXY>
67 oldServiceAssurance: false
75 # host: alertmanager.<IP_ADDRESS>.nip.io
82 fullnameOverride: "grafana"
89 ingressClassName: nginx
91 # - grafana.<IP_ADDRESS>.nip.io
94 name: sc-dashboard-volume-k8s
96 name: sc-dashboard-volume-osm
98 - name: sc-dashboard-volume-k8s
99 mountPath: "/tmp/dashboards/Kubernetes Cluster"
100 - name: sc-dashboard-volume-osm
101 mountPath: "/tmp/dashboards/Open Source MANO"
103 extraClusterRoleRules:
117 - name: osm_prometheus
119 url: http://prometheus:9090
125 url: http://osm-monitoring-kube-promet-prometheus.monitoring:9090
133 - name: 'Kubernetes Cluster'
135 folder: 'Kubernetes Cluster'
137 disableDeletion: false
139 path: '/tmp/dashboards/Kubernetes Cluster'
140 - name: 'Open Source MANO'
142 folder: 'Open Source MANO'
144 disableDeletion: false
146 path: '/tmp/dashboards/Open Source MANO'
150 folder: "/tmp/dashboards/"
154 - name: sc-dashboard-volume-k8s
155 mountPath: "/tmp/dashboards/Kubernetes Cluster"
156 - name: sc-dashboard-volume-osm
157 mountPath: "/tmp/dashboards/Open Source MANO"
163 value: grafana_datasource
165 value: /etc/grafana/provisioning/datasources
168 image: kiwigrid/k8s-sidecar:1.15.6
169 imagePullPolicy: IfNotPresent
170 name: grafana-sc-datasources
172 terminationMessagePath: /dev/termination-log
173 terminationMessagePolicy: File
175 - mountPath: /etc/grafana/provisioning/datasources
182 protocol: "PLAINTEXT"
183 fullnameOverride: "kafka"
191 # repository: opensourcemano/keystone
192 # tag: "testing-daily"
195 # secretName: "keystone-secret"
201 # repository: opensourcemano/lcm
202 # tag: "testing-daily"
205 # secretName: "lcm-secret"
207 scriptName: mainPostRenderer
208 path: /app/N2VC/n2vc/post-renderer-scripts/mainPostRenderer/
209 podLabelsPostRenderer:
210 scriptName: podLabels
211 path: /app/N2VC/n2vc/post-renderer-scripts/podLabels/
213 OSMLCM_VCA_CLOUD: "lxd-cloud"
214 OSMLCM_VCA_K8S_CLOUD: "k8scloud"
215 # OSMLCM_VCA_APIPROXY: "<VCA API proxy>"
216 # OSMLCM_VCA_ENABLEOSUPGRADE: true
217 # OSMLCM_VCA_APTMIRROR: "http://archive.ubuntu.com/ubuntu/"
223 # repository: opensourcemano/mon
224 # tag: "testing-daily"
227 # secretName: "mon-secret"
234 fullnameOverride: "mysql"
239 # host: nbi.<IP_ADDRESS>.nip.io
246 # repository: opensourcemano/nbi
247 # tag: "testing-daily"
250 # secretName: "nbi-secret"
259 # host: <IP_ADDRESS>.nip.io
261 # repository: opensourcemano/ng-ui
262 # tag: "testing-daily"
265 # pla module is disabled by default unless global.oldServiceAssurance and pla.enabled are set to true
270 # repository: opensourcemano/pla
271 # tag: "testing-daily"
274 # pol module is disabled by default unless global.oldServiceAssurance and pol.enabled are set to true
279 # repository: opensourcemano/pol
280 # tag: "testing-daily"
283 # secretName: "pol-secret"
290 prometheus-node-exporter:
296 - web.enable-lifecycle
299 configPath: /etc/prometheus/prometheus.yml
300 fullnameOverride: "prometheus"
307 ingressClassName: nginx
309 # - prometheus.<IP_ADDRESS>.nip.io
311 prometheus-config-sidecar:
313 # readOnlyRootFilesystem: true
314 allowPrivilegeEscalation: false
316 image: opensourcemano/prometheus:testing-daily
317 imagePullPolicy: IfNotPresent
318 command: ["/bin/sh", "-c"]
319 args: ["sleep 50; python -u ./app.py"]
322 mountPath: /etc/prometheus
323 - name: prom-config-base
324 mountPath: /etc/prometheus_base
332 name: osm-prometheus-sidecar-configmap
334 - name: prometheus-init-config
336 command: ["/bin/sh", "-c"]
337 #args: [' sleep 100000 ']
338 args: ['if [ ! -f "/etc/prometheus/prometheus.yml" ]; then cp /config/prometheus.yml /etc/prometheus; fi; cp /config/osm_metric_rules.yml /config/osm_alert_rules.yml /etc/prometheus']
341 mountPath: /etc/prometheus
342 - name: prom-config-base
346 mountPath: /etc/prometheus
350 - name: prom-config-base
354 name: osm-prom-configmap
356 - key: prometheus.yml
359 name: osm-prometheus-recordingrules-configmap
361 - key: osm_metric_rules.yml
362 path: osm_metric_rules.yml
364 name: osm-prometheus-alertingrules-configmap
366 - key: osm_alert_rules.yml
367 path: osm_alert_rules.yml
373 name: osm-prometheus-alertingrules-configmap
375 osm_alert_rules.yml: |
377 - name: osm_alert_rules
380 expr: vm_status_extended != 1
383 summary: "VDU {{ "{{" }} $labels.vm_id }} in VIM {{ "{{" }} $labels.vim_id }} is down"
384 description: "VDU {{ "{{" }} $labels.vm_id }} in VIM {{ "{{" }} $labels.vim_id }} has been down for more than 3 minutes. NS instance id is {{ "{{" }} $labels.ns_id }}"
389 name: osm-prometheus-recordingrules-configmap
391 osm_metric_rules.yml: |
393 - name: osm_metric_rules
395 - record: vm_status_extended
396 expr: (last_over_time(vm_status[1m]) * on (vm_id, vim_id) group_left(ns_id, vnf_id, vdu_id, project_id, job, vdu_name, vnf_member_index) last_over_time(ns_topology[1m])) or (last_over_time(ns_topology[1m]) * -1)
400 expr: (0 * (count (vm_status_extended==0) by (ns_id, vnf_id)>=0)) or (min by (ns_id, vnf_id) (vm_status_extended))
404 expr: (0 * (count (vm_status_extended==0) by (ns_id)>=0)) or (min by (ns_id) (vm_status_extended))
411 name: osm-prometheus-sidecar-configmap
413 MONGODB_URL: "mongodb://mongodb-k8s:27017/?replicaSet=rs0"
414 PROMETHEUS_CONFIG_FILE: "/etc/prometheus/prometheus.yml"
415 PROMETHEUS_BASE_CONFIG_FILE: "/etc/prometheus_base/prometheus.yml"
416 TARGET_DATABASE: "osm"
417 PROMETHEUS_URL: "http://prometheus:9090"
422 name: osm-prom-configmap
426 scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
427 evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
428 # scrape_timeout is set to the global default (10s).
429 # Alertmanager configuration
436 - "osm_metric_rules.yml"
437 - "osm_alert_rules.yml"
439 - job_name: 'mon_exporter'
441 - targets: ['mon:8000']
442 - job_name: pushgateway
447 - pushgateway-prometheus-pushgateway:9091
448 - job_name: prometheus
454 - targets: ['prometheus-node-exporter:9100']
457 fullnameOverride: "alertmanager"
471 # pathType: ImplementationSpecific
475 - name: default-receiver
478 - url: http://webhook-translator:9998/vdu_down
479 - name: scaleout-webhook
481 - url: http://webhook-translator:9998/scaleout_vdu
482 - name: scalein-webhook
484 - url: http://webhook-translator:9998/scalein_vdu
485 - name: alarm-webhook
487 - url: http://webhook-translator:9998/vdu_alarm
491 receiver: default-receiver
493 - receiver: vdu-webhook
496 - alertname = "vdu_down"
497 - receiver: 'scaleout-webhook'
500 - alertname =~ "^scaleout_.*"
501 - receiver: 'scalein-webhook'
504 - alertname =~ "^scalein_.*"
505 - receiver: 'alarm-webhook'
508 - alertname =~ "^vdu_alarm_.*"
509 prometheus-pushgateway:
510 fullnameOverride: "pushgateway-prometheus-pushgateway"
518 # repository: opensourcemano/ro
519 # tag: "testing-daily"
522 # secretName: "ro-secret"
535 # repository: opensourcemano/webhook
536 # tag: "testing-daily"
538 # host: webhook.<IP_ADDRESS>.nip.io