| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 1 | ####################################################################################### |
| 2 | # Copyright ETSI Contributors and Others. |
| 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 |
| 13 | # implied. |
| 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. |
| 20 | |
| 21 | global: |
| 22 | replicaCount: 1 |
| garciadeblas | 29484f1 | 2023-05-25 10:36:17 +0200 | [diff] [blame] | 23 | logLevel: INFO |
| garciadeblas | 18582e9 | 2024-05-21 12:13:50 +0200 | [diff] [blame] | 24 | # hostname to be used for the ingress objects |
| 25 | hostname: ~ |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 26 | image: |
| 27 | repositoryBase: docker.io/opensourcemano |
| 28 | pullPolicy: IfNotPresent |
| 29 | # Overrides the image tag whose default is the chart appVersion. |
| garciadeblas | 6e45978 | 2023-06-01 00:04:35 +0200 | [diff] [blame] | 30 | tag: "testing-daily" |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 31 | |
| 32 | imagePullSecrets: [] |
| 33 | nameOverride: "" |
| 34 | fullnameOverride: "" |
| garciadeblas | b89a41f | 2025-09-09 13:07:50 +0200 | [diff] [blame] | 35 | # ingressClassName: "nginx" |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 36 | |
| 37 | serviceAccount: |
| 38 | # Specifies whether a service account should be created |
| 39 | create: true |
| 40 | # Annotations to add to the service account |
| 41 | annotations: {} |
| 42 | # The name of the service account to use. |
| 43 | # If not set and create is true, a name is generated using the fullname template |
| 44 | name: "" |
| 45 | |
| Luis | c5176c6 | 2024-03-21 19:39:22 +0000 | [diff] [blame] | 46 | db: |
| 47 | mysql: |
| 48 | mysqlSecretName: mysql |
| 49 | mysqlSecretKey: mysql-root-password |
| 50 | mysqlService: mysql |
| 51 | mongo: |
| 52 | mongoService: mongodb-k8s |
| 53 | auth: |
| 54 | enabled: false |
| 55 | # secretName: mongodb-k8s |
| 56 | # secretKeyRootPassword: mongodb-root-password |
| 57 | |
| garciadeblas | 8d8cd99 | 2024-05-21 16:04:14 +0200 | [diff] [blame] | 58 | gitops: |
| 59 | enabled: true |
| 60 | auxcluster: |
| 61 | secretName: auxcluster-secret |
| 62 | secretKey: kubeconfig |
| 63 | mgmtcluster: |
| 64 | secretName: mgmtcluster-secret |
| 65 | secretKey: kubeconfig |
| garciadeblas | 1f6e09a | 2024-09-10 18:50:29 +0200 | [diff] [blame] | 66 | gitUser: osm-developer |
| 67 | # gitBaseUrl: http://git.<IP_ADDRESS>.nip.io |
| 68 | # pubkey: AGEKEY |
| garciadeblas | cf603f5 | 2025-06-04 11:57:28 +0200 | [diff] [blame] | 69 | # fleetRepoUrl: http://git.<IP_ADDRESS>.nip.io |
| 70 | # swcatalogsRepoUrl: http://git.<IP_ADDRESS>.nip.io |
| garciadeblas | 8d8cd99 | 2024-05-21 16:04:14 +0200 | [diff] [blame] | 71 | |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 72 | podAnnotations: {} |
| 73 | |
| 74 | podSecurityContext: |
| 75 | # runAsUser: 1000 |
| 76 | # runAsGroup: 1000 |
| 77 | fsGroup: 1000 |
| 78 | |
| 79 | securityContext: |
| 80 | runAsUser: 1000 |
| 81 | |
| 82 | nodeSelector: {} |
| 83 | |
| 84 | tolerations: [] |
| 85 | |
| 86 | affinity: {} |
| 87 | |
| 88 | behindHttpProxy: false |
| 89 | httpProxy: {} |
| 90 | # HTTP_PROXY: <HTTP_PROXY> |
| 91 | # HTTPS_PROXY: <HTTPS_PROXY> |
| 92 | # NO_PROXY: <NO_PROXY> |
| 93 | |
| garciadeblas | b6c30b4 | 2023-05-26 11:10:11 +0200 | [diff] [blame] | 94 | airflow: |
| 95 | enabled: true |
| garciadeblas | d61b01e | 2025-04-30 15:01:43 +0200 | [diff] [blame] | 96 | fullnameOverride: "airflow" |
| garciadeblas | cfb60b1 | 2025-04-23 17:55:02 +0200 | [diff] [blame] | 97 | config: |
| 98 | core: |
| 99 | parallelism: 4 |
| 100 | dag_concurrency: 2 |
| 101 | max_active_tasks_per_dag: 2 |
| 102 | worker_concurrency: 2 |
| 103 | dags_folder: "/home/airflow/.local/lib/python3.10/site-packages/osm_ngsa" |
| 104 | defaultAirflowRepository: opensourcemano/airflow |
| 105 | defaultAirflowTag: "testing-daily" |
| 106 | executor: LocalExecutor |
| 107 | extraEnv: | |
| 108 | - name: AIRFLOW__API__AUTH_BACKENDS |
| 109 | value: 'airflow.api.auth.backend.basic_auth' |
| 110 | - name: AIRFLOW__LOGGING__LOGGING_LEVEL |
| 111 | value: 'INFO' |
| 112 | - name: OSMMON_DATABASE_COMMONKEY |
| 113 | valueFrom: |
| 114 | secretKeyRef: |
| 115 | name: osm-secret |
| 116 | key: OSM_DATABASE_COMMONKEY |
| 117 | # extraEnvFrom: | |
| 118 | # - secretRef: |
| 119 | # name: ngsa-secret |
| 120 | ingress: |
| 121 | web: |
| 122 | enabled: True |
| 123 | # hosts: |
| 124 | # - name: "localhost" |
| 125 | ingressClassName: nginx |
| garciadeblas | a50a7a9 | 2025-10-24 12:26:49 +0200 | [diff] [blame^] | 126 | postgresql: |
| 127 | image: |
| 128 | repository: bitnamilegacy/postgresql |
| 129 | tag: 11 |
| garciadeblas | cfb60b1 | 2025-04-23 17:55:02 +0200 | [diff] [blame] | 130 | # scheduler: |
| 131 | # resources: |
| 132 | # requests: |
| 133 | # memory: 512Mi |
| 134 | # cpu: 250m |
| 135 | # limits: |
| 136 | # memory: 1Gi |
| 137 | # cpu: 500m |
| 138 | webserverSecretKeySecretName: airflow-webserver-secret |
| 139 | webserver: |
| 140 | resources: |
| 141 | requests: |
| 142 | memory: 256Mi |
| 143 | cpu: 250m |
| 144 | limits: |
| 145 | memory: 1Gi |
| 146 | cpu: 500m |
| 147 | service: |
| 148 | type: ClusterIP |
| 149 | ports: |
| 150 | - name: airflow-ui |
| 151 | port: "{{ .Values.ports.airflowUI }}" |
| 152 | targetPort: "{{ .Values.ports.airflowUI }}" |
| 153 | workers: |
| 154 | persistence: |
| 155 | size: 2Gi |
| 156 | replicas: 1 |
| 157 | resources: |
| 158 | requests: |
| 159 | memory: 512Mi |
| 160 | cpu: 250m |
| 161 | limits: |
| 162 | memory: 1Gi |
| 163 | cpu: 500m |
| 164 | logGroomerSidecar: |
| 165 | retentionDays: 7 |
| 166 | resources: |
| 167 | limits: |
| 168 | cpu: 100m |
| 169 | memory: 128Mi |
| 170 | requests: |
| 171 | cpu: 100m |
| 172 | memory: 128Mi |
| garciadeblas | b6c30b4 | 2023-05-26 11:10:11 +0200 | [diff] [blame] | 173 | |
| garciadeblas | 18582e9 | 2024-05-21 12:13:50 +0200 | [diff] [blame] | 174 | alertmanager: |
| 175 | enabled: true |
| 176 | ingress: {} |
| 177 | # host: alertmanager.<IP_ADDRESS>.nip.io |
| 178 | |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 179 | certauth: |
| 180 | enabled: true |
| 181 | |
| 182 | grafana: |
| 183 | enabled: true |
| zamre | abf6770 | 2024-02-07 15:06:16 +0000 | [diff] [blame] | 184 | fullnameOverride: "grafana" |
| garciadeblas | 18582e9 | 2024-05-21 12:13:50 +0200 | [diff] [blame] | 185 | # service: |
| 186 | # type: NodePort |
| 187 | # nodePort: 3000 |
| 188 | # port: 3000 |
| 189 | ingress: |
| 190 | enabled: true |
| 191 | ingressClassName: nginx |
| 192 | # hosts: |
| 193 | # - grafana.<IP_ADDRESS>.nip.io |
| zamre | abf6770 | 2024-02-07 15:06:16 +0000 | [diff] [blame] | 194 | extraVolumes: |
| 195 | - emptyDir: {} |
| 196 | name: sc-dashboard-volume-k8s |
| 197 | - emptyDir: {} |
| 198 | name: sc-dashboard-volume-osm |
| 199 | extraVolumeMounts: |
| 200 | - name: sc-dashboard-volume-k8s |
| 201 | mountPath: "/tmp/dashboards/Kubernetes Cluster" |
| 202 | - name: sc-dashboard-volume-osm |
| 203 | mountPath: "/tmp/dashboards/Open Source MANO" |
| 204 | rbac: |
| 205 | extraClusterRoleRules: |
| 206 | - apiGroups: |
| 207 | - "" |
| 208 | resources: |
| 209 | - configmaps |
| 210 | - secrets |
| 211 | verbs: |
| 212 | - get |
| 213 | - watch |
| 214 | - list |
| 215 | datasources: |
| 216 | datasource.yaml: |
| 217 | apiVersion: 1 |
| 218 | datasources: |
| 219 | - name: osm_prometheus |
| 220 | type: prometheus |
| 221 | url: http://prometheus:9090 |
| 222 | access: proxy |
| 223 | allowUiUpdates: true |
| 224 | isDefault: true |
| 225 | - name: Prometheus |
| 226 | type: prometheus |
| 227 | url: http://osm-monitoring-kube-promet-prometheus.monitoring:9090 |
| 228 | access: proxy |
| 229 | allowUiUpdates: true |
| 230 | isDefault: false |
| 231 | dashboardProviders: |
| 232 | provider.yaml: |
| 233 | apiVersion: 1 |
| 234 | providers: |
| 235 | - name: 'Kubernetes Cluster' |
| 236 | orgId: 1 |
| 237 | folder: 'Kubernetes Cluster' |
| 238 | type: file |
| 239 | disableDeletion: false |
| 240 | options: |
| 241 | path: '/tmp/dashboards/Kubernetes Cluster' |
| 242 | - name: 'Open Source MANO' |
| 243 | orgId: 1 |
| 244 | folder: 'Open Source MANO' |
| 245 | type: file |
| 246 | disableDeletion: false |
| 247 | options: |
| 248 | path: '/tmp/dashboards/Open Source MANO' |
| 249 | sidecar: |
| 250 | dashboards: |
| 251 | enabled: true |
| 252 | folder: "/tmp/dashboards/" |
| 253 | resource: both |
| 254 | searchNamespace: osm |
| garciadeblas | e6d4588 | 2024-05-22 15:03:00 +0200 | [diff] [blame] | 255 | extraMounts: |
| zamre | abf6770 | 2024-02-07 15:06:16 +0000 | [diff] [blame] | 256 | - name: sc-dashboard-volume-k8s |
| 257 | mountPath: "/tmp/dashboards/Kubernetes Cluster" |
| 258 | - name: sc-dashboard-volume-osm |
| 259 | mountPath: "/tmp/dashboards/Open Source MANO" |
| 260 | extraInitContainers: |
| 261 | - env: |
| 262 | - name: METHOD |
| 263 | value: LIST |
| 264 | - name: LABEL |
| 265 | value: grafana_datasource |
| 266 | - name: FOLDER |
| 267 | value: /etc/grafana/provisioning/datasources |
| 268 | - name: RESOURCE |
| 269 | value: both |
| 270 | image: kiwigrid/k8s-sidecar:1.15.6 |
| 271 | imagePullPolicy: IfNotPresent |
| 272 | name: grafana-sc-datasources |
| 273 | resources: {} |
| 274 | terminationMessagePath: /dev/termination-log |
| 275 | terminationMessagePolicy: File |
| 276 | volumeMounts: |
| 277 | - mountPath: /etc/grafana/provisioning/datasources |
| 278 | name: config |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 279 | |
| 280 | kafka: |
| 281 | enabled: true |
| almagia | f976ab8 | 2023-12-07 15:19:15 +0100 | [diff] [blame] | 282 | listeners: |
| 283 | client: |
| 284 | protocol: "PLAINTEXT" |
| 285 | fullnameOverride: "kafka" |
| garciadeblas | 8579587 | 2024-10-14 15:33:04 +0200 | [diff] [blame] | 286 | replicaCount: 1 |
| 287 | controller: |
| 288 | replicaCount: 1 |
| garciadeblas | 2c32fdb | 2025-02-25 12:01:49 +0100 | [diff] [blame] | 289 | resources: |
| 290 | limits: |
| 291 | memory: 1024Mi |
| 292 | heapOpts: -Xmx768m -Xms768m |
| garciadeblas | 8579587 | 2024-10-14 15:33:04 +0200 | [diff] [blame] | 293 | extraConfigYaml: |
| 294 | default.replication.factor: 1 |
| 295 | offsets.topic.replication.factor: 1 |
| 296 | transaction.state.log.replication.factor: 1 |
| 297 | transaction.state.log.min.isr: 1 |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 298 | |
| 299 | keystone: |
| vegall | 7badcae | 2024-07-02 15:30:30 +0000 | [diff] [blame] | 300 | enabled: false |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 301 | service: |
| 302 | port: 5000 |
| 303 | image: {} |
| 304 | # repository: opensourcemano/keystone |
| garciadeblas | 6e45978 | 2023-06-01 00:04:35 +0200 | [diff] [blame] | 305 | # tag: "testing-daily" |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 306 | # replicaCount: 1 |
| 307 | useOsmSecret: true |
| 308 | # secretName: "keystone-secret" |
| 309 | |
| 310 | lcm: |
| 311 | enabled: true |
| garciadeblas | 29484f1 | 2023-05-25 10:36:17 +0200 | [diff] [blame] | 312 | logLevel: DEBUG |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 313 | image: {} |
| 314 | # repository: opensourcemano/lcm |
| garciadeblas | 6e45978 | 2023-06-01 00:04:35 +0200 | [diff] [blame] | 315 | # tag: "testing-daily" |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 316 | # replicaCount: 1 |
| 317 | useOsmSecret: true |
| 318 | # secretName: "lcm-secret" |
| Pedro Pereira | c09bd23 | 2024-06-19 20:59:36 +0100 | [diff] [blame] | 319 | mainPostRenderer: |
| 320 | scriptName: mainPostRenderer |
| garciadeblas | 2ed535b | 2024-12-16 17:02:11 +0100 | [diff] [blame] | 321 | path: /usr/lib/python3/dist-packages/osm_lcm/n2vc/post-renderer-scripts/mainPostRenderer/ |
| Pedro Pereira | c09bd23 | 2024-06-19 20:59:36 +0100 | [diff] [blame] | 322 | podLabelsPostRenderer: |
| 323 | scriptName: podLabels |
| garciadeblas | 2ed535b | 2024-12-16 17:02:11 +0100 | [diff] [blame] | 324 | path: /usr/lib/python3/dist-packages/osm_lcm/n2vc/post-renderer-scripts/podLabels/ |
| Pedro Pereira | b54e51a | 2024-08-23 10:01:42 +0100 | [diff] [blame] | 325 | nodeSelectorPostRenderer: |
| 326 | scriptName: nodeSelector |
| garciadeblas | 2ed535b | 2024-12-16 17:02:11 +0100 | [diff] [blame] | 327 | path: /usr/lib/python3/dist-packages/osm_lcm/n2vc/post-renderer-scripts/nodeSelector/ |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 328 | config: |
| 329 | OSMLCM_VCA_CLOUD: "lxd-cloud" |
| 330 | OSMLCM_VCA_K8S_CLOUD: "k8scloud" |
| 331 | # OSMLCM_VCA_APIPROXY: "<VCA API proxy>" |
| 332 | # OSMLCM_VCA_ENABLEOSUPGRADE: true |
| 333 | # OSMLCM_VCA_APTMIRROR: "http://archive.ubuntu.com/ubuntu/" |
| 334 | |
| 335 | mon: |
| 336 | enabled: true |
| garciadeblas | 29484f1 | 2023-05-25 10:36:17 +0200 | [diff] [blame] | 337 | # logLevel: DEBUG |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 338 | image: {} |
| 339 | # repository: opensourcemano/mon |
| garciadeblas | 6e45978 | 2023-06-01 00:04:35 +0200 | [diff] [blame] | 340 | # tag: "testing-daily" |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 341 | # replicaCount: 1 |
| 342 | useOsmSecret: true |
| 343 | # secretName: "mon-secret" |
| 344 | config: {} |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 345 | |
| garciadeblas | c3aa939 | 2025-04-22 14:13:23 +0200 | [diff] [blame] | 346 | mongodb: |
| 347 | enabled: true |
| garciadeblas | 99851f9 | 2025-04-30 15:06:50 +0200 | [diff] [blame] | 348 | fullnameOverride: "mongodb-k8s" |
| garciadeblas | c3aa939 | 2025-04-22 14:13:23 +0200 | [diff] [blame] | 349 | replicaCount: 1 |
| 350 | service: |
| 351 | nameOverride: "mongodb-k8s" |
| 352 | auth: |
| 353 | enabled: false |
| 354 | architecture: "replicaset" |
| 355 | livenessProbe: |
| 356 | initialDelaySeconds: 60 |
| 357 | periodSeconds: 30 |
| 358 | timeoutSeconds: 10 |
| 359 | failureThreshold: 10 |
| 360 | successThreshold: 1 |
| 361 | readinessProbe: |
| 362 | initialDelaySeconds: 60 |
| 363 | periodSeconds: 30 |
| 364 | timeoutSeconds: 10 |
| 365 | failureThreshold: 10 |
| 366 | successThreshold: 1 |
| 367 | |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 368 | mysql: |
| vegall | 7badcae | 2024-07-02 15:30:30 +0000 | [diff] [blame] | 369 | enabled: false |
| almagia | f976ab8 | 2023-12-07 15:19:15 +0100 | [diff] [blame] | 370 | image: |
| 371 | tag: "8.1-debian-11" |
| 372 | fullnameOverride: "mysql" |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 373 | |
| 374 | nbi: |
| 375 | enabled: true |
| garciadeblas | 18582e9 | 2024-05-21 12:13:50 +0200 | [diff] [blame] | 376 | ingress: {} |
| 377 | # host: nbi.<IP_ADDRESS>.nip.io |
| garciadeblas | 29484f1 | 2023-05-25 10:36:17 +0200 | [diff] [blame] | 378 | logLevel: DEBUG |
| garciadeblas | 18582e9 | 2024-05-21 12:13:50 +0200 | [diff] [blame] | 379 | service: {} |
| 380 | # type: NodePort |
| 381 | # port: 9999 |
| 382 | # nodePort: 9999 |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 383 | image: {} |
| 384 | # repository: opensourcemano/nbi |
| garciadeblas | 6e45978 | 2023-06-01 00:04:35 +0200 | [diff] [blame] | 385 | # tag: "testing-daily" |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 386 | # replicaCount: 1 |
| 387 | useOsmSecret: true |
| 388 | # secretName: "nbi-secret" |
| jegan | babd7db | 2024-07-05 05:50:07 +0000 | [diff] [blame] | 389 | smtp: |
| 390 | enabled: false |
| 391 | server: "" |
| 392 | port: "" |
| 393 | senderEmail: "" |
| 394 | otpRetryCount: 3 |
| 395 | otpExpiryTime: 300 |
| 396 | secretName: "osmnbi-email-password" |
| 397 | secretKey: "OSMNBI_EMAIL_PASSWORD" |
| 398 | |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 399 | |
| 400 | ngui: |
| 401 | enabled: true |
| garciadeblas | 18582e9 | 2024-05-21 12:13:50 +0200 | [diff] [blame] | 402 | service: {} |
| 403 | # type: NodePort |
| 404 | # port: 80 |
| 405 | # nodePort: 80 |
| 406 | ingress: {} |
| 407 | # host: <IP_ADDRESS>.nip.io |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 408 | image: {} |
| 409 | # repository: opensourcemano/ng-ui |
| garciadeblas | 6e45978 | 2023-06-01 00:04:35 +0200 | [diff] [blame] | 410 | # tag: "testing-daily" |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 411 | # replicaCount: 1 |
| 412 | |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 413 | prometheus: |
| 414 | enabled: true |
| almagia | 027f8ee | 2024-06-03 17:29:12 +0200 | [diff] [blame] | 415 | configmapReload: |
| 416 | prometheus: |
| 417 | enabled: true |
| 418 | prometheus-node-exporter: |
| 419 | enabled: false |
| 420 | kube-state-metrics: |
| 421 | enabled: false |
| 422 | server: |
| 423 | extraFlags: |
| 424 | - web.enable-lifecycle |
| 425 | statefulSet: |
| 426 | enabled: true |
| 427 | configPath: /etc/prometheus/prometheus.yml |
| 428 | fullnameOverride: "prometheus" |
| 429 | service: |
| 430 | servicePort: 9090 |
| 431 | # type: NodePort |
| 432 | # nodePort: 9091 |
| 433 | ingress: |
| 434 | enabled: true |
| 435 | ingressClassName: nginx |
| 436 | # hosts: |
| 437 | # - prometheus.<IP_ADDRESS>.nip.io |
| 438 | sidecarContainers: |
| 439 | prometheus-config-sidecar: |
| 440 | securityContext: |
| 441 | # readOnlyRootFilesystem: true |
| 442 | allowPrivilegeEscalation: false |
| 443 | # runAsNonRoot: true |
| 444 | image: opensourcemano/prometheus:testing-daily |
| 445 | imagePullPolicy: IfNotPresent |
| 446 | command: ["/bin/sh", "-c"] |
| 447 | args: ["sleep 50; python -u ./app.py"] |
| 448 | volumeMounts: |
| 449 | - name: prom-config |
| 450 | mountPath: /etc/prometheus |
| 451 | - name: prom-config-base |
| 452 | mountPath: /etc/prometheus_base |
| 453 | resources: |
| 454 | limits: |
| 455 | memory: 1024Mi |
| 456 | requests: |
| 457 | memory: 128Mi |
| 458 | envFrom: |
| 459 | - configMapRef: |
| 460 | name: osm-prometheus-sidecar-configmap |
| 461 | extraInitContainers: |
| 462 | - name: prometheus-init-config |
| 463 | image: busybox |
| 464 | command: ["/bin/sh", "-c"] |
| 465 | #args: [' sleep 100000 '] |
| 466 | 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'] |
| 467 | volumeMounts: |
| 468 | - name: prom-config |
| 469 | mountPath: /etc/prometheus |
| 470 | - name: prom-config-base |
| 471 | mountPath: /config |
| 472 | extraVolumeMounts: |
| 473 | - name: prom-config |
| 474 | mountPath: /etc/prometheus |
| 475 | extraVolumes: |
| 476 | - name: prom-config |
| 477 | emptyDir: {} |
| 478 | - name: prom-config-base |
| 479 | projected: |
| 480 | sources: |
| 481 | - configMap: |
| 482 | name: osm-prom-configmap |
| 483 | items: |
| 484 | - key: prometheus.yml |
| 485 | path: prometheus.yml |
| 486 | - configMap: |
| 487 | name: osm-prometheus-recordingrules-configmap |
| 488 | items: |
| 489 | - key: osm_metric_rules.yml |
| 490 | path: osm_metric_rules.yml |
| 491 | - configMap: |
| 492 | name: osm-prometheus-alertingrules-configmap |
| 493 | items: |
| 494 | - key: osm_alert_rules.yml |
| 495 | path: osm_alert_rules.yml |
| 496 | extraManifests: |
| 497 | - | |
| 498 | apiVersion: v1 |
| 499 | kind: ConfigMap |
| 500 | metadata: |
| 501 | name: osm-prometheus-alertingrules-configmap |
| 502 | data: |
| 503 | osm_alert_rules.yml: | |
| 504 | groups: |
| 505 | - name: osm_alert_rules |
| 506 | rules: |
| 507 | - alert: vdu_down |
| 508 | expr: vm_status_extended != 1 |
| 509 | for: 3m |
| 510 | annotations: |
| 511 | summary: "VDU {{ "{{" }} $labels.vm_id }} in VIM {{ "{{" }} $labels.vim_id }} is down" |
| 512 | 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 }}" |
| 513 | - | |
| 514 | apiVersion: v1 |
| 515 | kind: ConfigMap |
| 516 | metadata: |
| 517 | name: osm-prometheus-recordingrules-configmap |
| 518 | data: |
| 519 | osm_metric_rules.yml: | |
| 520 | groups: |
| 521 | - name: osm_metric_rules |
| 522 | rules: |
| 523 | - record: vm_status_extended |
| Rahul Zamre | 435b4c6 | 2024-06-04 09:26:57 +0100 | [diff] [blame] | 524 | 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, ns_name, vnf_member_index) last_over_time(ns_topology[1m])) or (last_over_time(ns_topology[1m]) * -1) |
| almagia | 027f8ee | 2024-06-03 17:29:12 +0200 | [diff] [blame] | 525 | labels: |
| 526 | job: osm_prometheus |
| 527 | - record: vnf_status |
| 528 | expr: (0 * (count (vm_status_extended==0) by (ns_id, vnf_id)>=0)) or (min by (ns_id, vnf_id) (vm_status_extended)) |
| 529 | labels: |
| 530 | job: osm_prometheus |
| 531 | - record: ns_status |
| 532 | expr: (0 * (count (vm_status_extended==0) by (ns_id)>=0)) or (min by (ns_id) (vm_status_extended)) |
| 533 | labels: |
| 534 | job: osm_prometheus |
| 535 | - | |
| 536 | apiVersion: v1 |
| 537 | kind: ConfigMap |
| 538 | metadata: |
| 539 | name: osm-prometheus-sidecar-configmap |
| 540 | data: |
| 541 | MONGODB_URL: "mongodb://mongodb-k8s:27017/?replicaSet=rs0" |
| 542 | PROMETHEUS_CONFIG_FILE: "/etc/prometheus/prometheus.yml" |
| 543 | PROMETHEUS_BASE_CONFIG_FILE: "/etc/prometheus_base/prometheus.yml" |
| 544 | TARGET_DATABASE: "osm" |
| 545 | PROMETHEUS_URL: "http://prometheus:9090" |
| 546 | - | |
| 547 | apiVersion: v1 |
| 548 | kind: ConfigMap |
| 549 | metadata: |
| 550 | name: osm-prom-configmap |
| 551 | data: |
| 552 | prometheus.yml: | |
| 553 | global: |
| 554 | scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. |
| 555 | evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. |
| 556 | # scrape_timeout is set to the global default (10s). |
| 557 | # Alertmanager configuration |
| 558 | alerting: |
| 559 | alertmanagers: |
| 560 | - static_configs: |
| 561 | - targets: |
| 562 | - alertmanager:9093 |
| 563 | rule_files: |
| 564 | - "osm_metric_rules.yml" |
| 565 | - "osm_alert_rules.yml" |
| 566 | scrape_configs: |
| 567 | - job_name: 'mon_exporter' |
| 568 | static_configs: |
| 569 | - targets: ['mon:8000'] |
| 570 | - job_name: pushgateway |
| 571 | honor_labels: true |
| 572 | scrape_interval: 30s |
| 573 | static_configs: |
| 574 | - targets: |
| 575 | - pushgateway-prometheus-pushgateway:9091 |
| 576 | - job_name: prometheus |
| 577 | static_configs: |
| 578 | - targets: |
| 579 | - localhost:9090 |
| 580 | - job_name: node |
| 581 | static_configs: |
| 582 | - targets: ['prometheus-node-exporter:9100'] |
| 583 | alertmanager: |
| 584 | enabled: true |
| 585 | fullnameOverride: "alertmanager" |
| 586 | extraArgs: |
| 587 | log.level: debug |
| 588 | # service: |
| 589 | # type: NodePort |
| 590 | # nodePort: 9093 |
| 591 | # port: 9093 |
| 592 | # ingress: |
| 593 | # enabled: True |
| 594 | # className: nginx |
| 595 | # hosts: |
| 596 | # - host: localhost |
| 597 | # paths: |
| 598 | # - path: / |
| 599 | # pathType: ImplementationSpecific |
| 600 | # tls: [] |
| 601 | config: |
| 602 | receivers: |
| 603 | - name: default-receiver |
| 604 | - name: vdu-webhook |
| 605 | webhook_configs: |
| 606 | - url: http://webhook-translator:9998/vdu_down |
| 607 | - name: scaleout-webhook |
| 608 | webhook_configs: |
| 609 | - url: http://webhook-translator:9998/scaleout_vdu |
| 610 | - name: scalein-webhook |
| 611 | webhook_configs: |
| 612 | - url: http://webhook-translator:9998/scalein_vdu |
| 613 | - name: alarm-webhook |
| 614 | webhook_configs: |
| 615 | - url: http://webhook-translator:9998/vdu_alarm |
| 616 | route: |
| 617 | group_wait: 10s |
| 618 | group_interval: 2m |
| 619 | receiver: default-receiver |
| 620 | routes: |
| 621 | - receiver: vdu-webhook |
| 622 | repeat_interval: 15m |
| 623 | matchers: |
| 624 | - alertname = "vdu_down" |
| 625 | - receiver: 'scaleout-webhook' |
| 626 | repeat_interval: 5m |
| 627 | matchers: |
| 628 | - alertname =~ "^scaleout_.*" |
| 629 | - receiver: 'scalein-webhook' |
| 630 | repeat_interval: 5m |
| 631 | matchers: |
| 632 | - alertname =~ "^scalein_.*" |
| 633 | - receiver: 'alarm-webhook' |
| 634 | repeat_interval: 5m |
| 635 | matchers: |
| 636 | - alertname =~ "^vdu_alarm_.*" |
| 637 | prometheus-pushgateway: |
| 638 | fullnameOverride: "pushgateway-prometheus-pushgateway" |
| 639 | |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 640 | ro: |
| 641 | enabled: true |
| garciadeblas | 29484f1 | 2023-05-25 10:36:17 +0200 | [diff] [blame] | 642 | # logLevel: DEBUG |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 643 | service: |
| 644 | port: 9090 |
| 645 | image: {} |
| 646 | # repository: opensourcemano/ro |
| garciadeblas | 6e45978 | 2023-06-01 00:04:35 +0200 | [diff] [blame] | 647 | # tag: "testing-daily" |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 648 | # replicaCount: 1 |
| 649 | useOsmSecret: true |
| 650 | # secretName: "ro-secret" |
| 651 | |
| 652 | vca: |
| garciadeblas | 8375da1 | 2023-10-10 10:52:29 +0200 | [diff] [blame] | 653 | enabled: false |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 654 | # host: "" |
| 655 | # secret: "" |
| 656 | # cacert: "" |
| 657 | # pubkey: "" |
| 658 | |
| 659 | webhookTranslator: |
| 660 | enabled: true |
| garciadeblas | 18582e9 | 2024-05-21 12:13:50 +0200 | [diff] [blame] | 661 | # replicaCount: 1 |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 662 | image: {} |
| 663 | # repository: opensourcemano/webhook |
| garciadeblas | 6e45978 | 2023-06-01 00:04:35 +0200 | [diff] [blame] | 664 | # tag: "testing-daily" |
| garciadeblas | 18582e9 | 2024-05-21 12:13:50 +0200 | [diff] [blame] | 665 | ingress: {} |
| 666 | # host: webhook.<IP_ADDRESS>.nip.io |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 667 | # replicaCount: 1 |
| garciadeblas | 18582e9 | 2024-05-21 12:13:50 +0200 | [diff] [blame] | 668 | service: {} |
| 669 | # type: NodePort |
| 670 | # nodePort: 9998 |
| 671 | # port: 9998 |
| garciadeblas | bbd1af0 | 2025-06-03 13:12:17 +0200 | [diff] [blame] | 672 | config: |
| 673 | airflowHost: "osm-webserver" |
| 674 | # airflowPort: "8080" |