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
47 mysqlSecretName: mysql
48 mysqlSecretKey: mysql-root-password
51 mongoService: mongodb-k8s
54 # secretName: mongodb-k8s
55 # secretKeyRootPassword: mongodb-root-password
73 behindHttpProxy: false
75 # HTTP_PROXY: <HTTP_PROXY>
76 # HTTPS_PROXY: <HTTPS_PROXY>
77 # NO_PROXY: <NO_PROXY>
79 oldServiceAssurance: false
87 # host: alertmanager.<IP_ADDRESS>.nip.io
94 fullnameOverride: "grafana"
101 ingressClassName: nginx
103 # - grafana.<IP_ADDRESS>.nip.io
106 name: sc-dashboard-volume-k8s
108 name: sc-dashboard-volume-osm
110 - name: sc-dashboard-volume-k8s
111 mountPath: "/tmp/dashboards/Kubernetes Cluster"
112 - name: sc-dashboard-volume-osm
113 mountPath: "/tmp/dashboards/Open Source MANO"
115 extraClusterRoleRules:
129 - name: osm_prometheus
131 url: http://prometheus:9090
137 url: http://osm-monitoring-kube-promet-prometheus.monitoring:9090
145 - name: 'Kubernetes Cluster'
147 folder: 'Kubernetes Cluster'
149 disableDeletion: false
151 path: '/tmp/dashboards/Kubernetes Cluster'
152 - name: 'Open Source MANO'
154 folder: 'Open Source MANO'
156 disableDeletion: false
158 path: '/tmp/dashboards/Open Source MANO'
162 folder: "/tmp/dashboards/"
166 - name: sc-dashboard-volume-k8s
167 mountPath: "/tmp/dashboards/Kubernetes Cluster"
168 - name: sc-dashboard-volume-osm
169 mountPath: "/tmp/dashboards/Open Source MANO"
175 value: grafana_datasource
177 value: /etc/grafana/provisioning/datasources
180 image: kiwigrid/k8s-sidecar:1.15.6
181 imagePullPolicy: IfNotPresent
182 name: grafana-sc-datasources
184 terminationMessagePath: /dev/termination-log
185 terminationMessagePolicy: File
187 - mountPath: /etc/grafana/provisioning/datasources
194 protocol: "PLAINTEXT"
195 fullnameOverride: "kafka"
203 # repository: opensourcemano/keystone
204 # tag: "testing-daily"
207 # secretName: "keystone-secret"
213 # repository: opensourcemano/lcm
214 # tag: "testing-daily"
217 # secretName: "lcm-secret"
219 scriptName: mainPostRenderer
220 path: /app/N2VC/n2vc/post-renderer-scripts/mainPostRenderer/
221 podLabelsPostRenderer:
222 scriptName: podLabels
223 path: /app/N2VC/n2vc/post-renderer-scripts/podLabels/
225 OSMLCM_VCA_CLOUD: "lxd-cloud"
226 OSMLCM_VCA_K8S_CLOUD: "k8scloud"
227 # OSMLCM_VCA_APIPROXY: "<VCA API proxy>"
228 # OSMLCM_VCA_ENABLEOSUPGRADE: true
229 # OSMLCM_VCA_APTMIRROR: "http://archive.ubuntu.com/ubuntu/"
235 # repository: opensourcemano/mon
236 # tag: "testing-daily"
239 # secretName: "mon-secret"
246 fullnameOverride: "mysql"
251 # host: nbi.<IP_ADDRESS>.nip.io
258 # repository: opensourcemano/nbi
259 # tag: "testing-daily"
262 # secretName: "nbi-secret"
271 # host: <IP_ADDRESS>.nip.io
273 # repository: opensourcemano/ng-ui
274 # tag: "testing-daily"
277 # pla module is disabled by default unless global.oldServiceAssurance and pla.enabled are set to true
282 # repository: opensourcemano/pla
283 # tag: "testing-daily"
286 # pol module is disabled by default unless global.oldServiceAssurance and pol.enabled are set to true
291 # repository: opensourcemano/pol
292 # tag: "testing-daily"
295 # secretName: "pol-secret"
302 prometheus-node-exporter:
308 - web.enable-lifecycle
311 configPath: /etc/prometheus/prometheus.yml
312 fullnameOverride: "prometheus"
319 ingressClassName: nginx
321 # - prometheus.<IP_ADDRESS>.nip.io
323 prometheus-config-sidecar:
325 # readOnlyRootFilesystem: true
326 allowPrivilegeEscalation: false
328 image: opensourcemano/prometheus:testing-daily
329 imagePullPolicy: IfNotPresent
330 command: ["/bin/sh", "-c"]
331 args: ["sleep 50; python -u ./app.py"]
334 mountPath: /etc/prometheus
335 - name: prom-config-base
336 mountPath: /etc/prometheus_base
344 name: osm-prometheus-sidecar-configmap
346 - name: prometheus-init-config
348 command: ["/bin/sh", "-c"]
349 #args: [' sleep 100000 ']
350 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']
353 mountPath: /etc/prometheus
354 - name: prom-config-base
358 mountPath: /etc/prometheus
362 - name: prom-config-base
366 name: osm-prom-configmap
368 - key: prometheus.yml
371 name: osm-prometheus-recordingrules-configmap
373 - key: osm_metric_rules.yml
374 path: osm_metric_rules.yml
376 name: osm-prometheus-alertingrules-configmap
378 - key: osm_alert_rules.yml
379 path: osm_alert_rules.yml
385 name: osm-prometheus-alertingrules-configmap
387 osm_alert_rules.yml: |
389 - name: osm_alert_rules
392 expr: vm_status_extended != 1
395 summary: "VDU {{ "{{" }} $labels.vm_id }} in VIM {{ "{{" }} $labels.vim_id }} is down"
396 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 }}"
401 name: osm-prometheus-recordingrules-configmap
403 osm_metric_rules.yml: |
405 - name: osm_metric_rules
407 - record: vm_status_extended
408 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)
412 expr: (0 * (count (vm_status_extended==0) by (ns_id, vnf_id)>=0)) or (min by (ns_id, vnf_id) (vm_status_extended))
416 expr: (0 * (count (vm_status_extended==0) by (ns_id)>=0)) or (min by (ns_id) (vm_status_extended))
423 name: osm-prometheus-sidecar-configmap
425 MONGODB_URL: "mongodb://mongodb-k8s:27017/?replicaSet=rs0"
426 PROMETHEUS_CONFIG_FILE: "/etc/prometheus/prometheus.yml"
427 PROMETHEUS_BASE_CONFIG_FILE: "/etc/prometheus_base/prometheus.yml"
428 TARGET_DATABASE: "osm"
429 PROMETHEUS_URL: "http://prometheus:9090"
434 name: osm-prom-configmap
438 scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
439 evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
440 # scrape_timeout is set to the global default (10s).
441 # Alertmanager configuration
448 - "osm_metric_rules.yml"
449 - "osm_alert_rules.yml"
451 - job_name: 'mon_exporter'
453 - targets: ['mon:8000']
454 - job_name: pushgateway
459 - pushgateway-prometheus-pushgateway:9091
460 - job_name: prometheus
466 - targets: ['prometheus-node-exporter:9100']
469 fullnameOverride: "alertmanager"
483 # pathType: ImplementationSpecific
487 - name: default-receiver
490 - url: http://webhook-translator:9998/vdu_down
491 - name: scaleout-webhook
493 - url: http://webhook-translator:9998/scaleout_vdu
494 - name: scalein-webhook
496 - url: http://webhook-translator:9998/scalein_vdu
497 - name: alarm-webhook
499 - url: http://webhook-translator:9998/vdu_alarm
503 receiver: default-receiver
505 - receiver: vdu-webhook
508 - alertname = "vdu_down"
509 - receiver: 'scaleout-webhook'
512 - alertname =~ "^scaleout_.*"
513 - receiver: 'scalein-webhook'
516 - alertname =~ "^scalein_.*"
517 - receiver: 'alarm-webhook'
520 - alertname =~ "^vdu_alarm_.*"
521 prometheus-pushgateway:
522 fullnameOverride: "pushgateway-prometheus-pushgateway"
530 # repository: opensourcemano/ro
531 # tag: "testing-daily"
534 # secretName: "ro-secret"
547 # repository: opensourcemano/webhook
548 # tag: "testing-daily"
550 # host: webhook.<IP_ADDRESS>.nip.io