Joey Armstrong | 0747509 | 2023-01-26 10:56:13 -0500 | [diff] [blame] | 1 | # Copyright 2019-2023 Open Networking Foundation (ONF) and the ONF Contributors |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
David Bainbridge | 8595b3b | 2020-06-05 12:23:05 -0700 | [diff] [blame] | 14 | --- |
David Bainbridge | 2bdd430 | 2020-06-09 17:13:18 -0700 | [diff] [blame] | 15 | nameOverride: ~ |
| 16 | fullNameOverride: ~ |
Matteo Scandolo | c2c917a | 2021-04-06 09:15:31 -0700 | [diff] [blame] | 17 | fullHostnameOverride: ~ |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 18 | |
David Bainbridge | 60332ae | 2019-10-11 15:04:13 +0000 | [diff] [blame] | 19 | # Default Values |
| 20 | # The following are the default values used for every container in the |
| 21 | # template. |
Matteo Scandolo | b4c5f4e | 2020-11-11 12:05:23 -0800 | [diff] [blame] | 22 | global: |
| 23 | stack_name: voltha |
Matteo Scandolo | 1d7ab92 | 2019-12-10 13:41:23 -0800 | [diff] [blame] | 24 | log_level: "WARN" |
David Bainbridge | 5cb5d17 | 2019-07-24 02:30:19 +0000 | [diff] [blame] | 25 | image_registry: '' |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 26 | image_org: "voltha/" |
David Bainbridge | 60332ae | 2019-10-11 15:04:13 +0000 | [diff] [blame] | 27 | image_tag: ~ |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 28 | image_pullPolicy: "Always" |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 29 | rw_core: |
Girish Gowdra | f8ac403 | 2021-10-22 16:32:52 -0700 | [diff] [blame] | 30 | rpc_timeout: "30s" |
Himani Chawla | 81472cd | 2021-11-08 17:14:11 +0530 | [diff] [blame] | 31 | flow_timeout: "30s" |
Girish Gowdra | f8ac403 | 2021-10-22 16:32:52 -0700 | [diff] [blame] | 32 | internal_timeout: "30s" |
Matteo Scandolo | b4c5f4e | 2020-11-11 12:05:23 -0800 | [diff] [blame] | 33 | # Configure Log Correlation |
| 34 | log_correlation: |
| 35 | enabled: true |
| 36 | # Configure Tracing |
| 37 | tracing: |
| 38 | enabled: true |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 39 | |
khenaidoo | 15c53fb | 2021-08-09 13:56:27 -0400 | [diff] [blame] | 40 | # Probe values |
| 41 | probe: |
| 42 | liveness: |
| 43 | initial_delay_seconds: 3 |
| 44 | period_seconds: 3 |
| 45 | readiness: |
| 46 | initial_delay_seconds: 3 |
| 47 | period_seconds: 3 |
| 48 | |
David Bainbridge | 8595b3b | 2020-06-05 12:23:05 -0700 | [diff] [blame] | 49 | # Default security context under which the containers run |
David Bainbridge | 16b19cc | 2020-05-29 11:50:44 -0700 | [diff] [blame] | 50 | securityContext: |
| 51 | enabled: true |
| 52 | fsGroup: 1001 |
| 53 | runAsUser: 1001 |
| 54 | runAsGroup: 1001 |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 55 | |
| 56 | # Define connectivity to services on which VOLTHA depends |
| 57 | services: |
| 58 | kafka: |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 59 | cluster: |
Neha Sharma | 1a3da1c | 2020-06-24 13:12:48 +0000 | [diff] [blame] | 60 | address: kafka:9092 |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 61 | |
| 62 | # Define connectivity to etcd |
| 63 | etcd: |
Neha Sharma | 1a3da1c | 2020-06-24 13:12:48 +0000 | [diff] [blame] | 64 | address: etcd:2379 |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 65 | |
Girish Kumar | 877af92 | 2020-07-31 06:05:32 +0000 | [diff] [blame] | 66 | # Define Tracing Agent connection details |
| 67 | tracing_agent: |
| 68 | address: jaeger-agent:6831 |
| 69 | |
Jonathan Hart | 3980b74 | 2020-04-20 11:00:54 -0700 | [diff] [blame] | 70 | # Define the list of controllers to connect to |
Matteo Scandolo | b65a5a7 | 2021-04-30 16:16:05 -0700 | [diff] [blame] | 71 | # NOTE this is needed only in case you need to connect to an external ONOS, |
| 72 | # if you want to connect to an ONOS installed via voltha-infra please refer to the onos_classic field in this config |
| 73 | controller: [] |
| 74 | # - address: onos-openflow:6653 |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 75 | |
Matteo Scandolo | e9a01f7 | 2020-05-05 09:33:59 -0700 | [diff] [blame] | 76 | # Expose the golang pprof webserver, if enabled |
| 77 | profiler: |
| 78 | enabled: false |
| 79 | |
Girish Kumar | 877af92 | 2020-07-31 06:05:32 +0000 | [diff] [blame] | 80 | # Define the replica count for everything |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 81 | replicas: |
| 82 | # For R/W cores the templates translate the number of replicas |
| 83 | # into the number of RW core pairs with two pods per pair |
| 84 | rw_core: 1 |
| 85 | |
| 86 | # For everything else replicas are replicas |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 87 | ofagent: 1 |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 88 | |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 89 | rw_core: |
Matteo Scandolo | b4c5f4e | 2020-11-11 12:05:23 -0800 | [diff] [blame] | 90 | log_level: '{{ .Values.global.log_level }}' |
khenaidoo | 15c53fb | 2021-08-09 13:56:27 -0400 | [diff] [blame] | 91 | rpc_timeout: '{{ .Values.global.rw_core.rpc_timeout }}' |
Himani Chawla | 81472cd | 2021-11-08 17:14:11 +0530 | [diff] [blame] | 92 | flow_timeout: '{{ .Values.global.rw_core.flow_timeout }}' |
khenaidoo | 15c53fb | 2021-08-09 13:56:27 -0400 | [diff] [blame] | 93 | internal_timeout: '{{ .Values.global.rw_core.internal_timeout }}' |
Matteo Scandolo | b4c5f4e | 2020-11-11 12:05:23 -0800 | [diff] [blame] | 94 | kv_store_data_prefix: 'service/{{ .Values.global.stack_name }}_voltha' |
Himani Chawla | afd8e84 | 2021-03-25 01:32:59 +0530 | [diff] [blame] | 95 | stack_id: "{{ .Values.global.stack_name }}" |
Matteo Scandolo | b4c5f4e | 2020-11-11 12:05:23 -0800 | [diff] [blame] | 96 | topics: |
Matteo Scandolo | 06ee58c | 2021-05-26 15:28:51 -0700 | [diff] [blame] | 97 | event_topic: "voltha.events" |
khenaidoo | 15c53fb | 2021-08-09 13:56:27 -0400 | [diff] [blame] | 98 | backoff_initial_interval: 500ms |
| 99 | backoff_max_interval: 5s |
| 100 | backoff_max_elapsed_time: 0s |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 101 | |
David K. Bainbridge | 707022f | 2020-01-23 14:15:07 -0800 | [diff] [blame] | 102 | ofagent: |
Matteo Scandolo | b4c5f4e | 2020-11-11 12:05:23 -0800 | [diff] [blame] | 103 | log_level: '{{ .Values.global.log_level }}' |
Matteo Scandolo | 06ee58c | 2021-05-26 15:28:51 -0700 | [diff] [blame] | 104 | device_refresh_interval: '15s' |
Marcos Aurelio Carrero (Furukawa) | f6844f4 | 2023-06-06 15:18:58 -0300 | [diff] [blame] | 105 | kv_store_data_prefix: 'service/{{ .Values.global.stack_name }}_voltha' |
David K. Bainbridge | 707022f | 2020-01-23 14:15:07 -0800 | [diff] [blame] | 106 | |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 107 | # Define Docker images to be used |
Jan Klare | ea3ab39 | 2023-10-31 14:27:23 +0100 | [diff] [blame] | 108 | # voltha-ofagent-go repo https://github.com/opencord/ofagent-go |
| 109 | # voltha-rw-core repo https://github.com/opencord/voltha-go |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 110 | images: |
David Bainbridge | 60018ec | 2020-06-02 13:32:30 -0700 | [diff] [blame] | 111 | ofagent: |
Matteo Scandolo | b4c5f4e | 2020-11-11 12:05:23 -0800 | [diff] [blame] | 112 | registry: '{{ .Values.global.image_registry }}' |
| 113 | repository: '{{ .Values.global.image_org }}voltha-ofagent-go' |
Jan Klare | ea3ab39 | 2023-10-31 14:27:23 +0100 | [diff] [blame] | 114 | tag: '{{- if hasKey .Values.global "image_tag" }}{{- if .Values.global.image_tag }}{{ .Values.global.image_tag }}{{- else }}2.1.6{{- end }}{{- else }}2.1.6{{- end }}' |
Matteo Scandolo | b4c5f4e | 2020-11-11 12:05:23 -0800 | [diff] [blame] | 115 | pullPolicy: '{{ .Values.global.image_pullPolicy }}' |
Matteo Scandolo | ccea27b | 2020-03-18 15:25:05 -0700 | [diff] [blame] | 116 | |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 117 | rw_core: |
Matteo Scandolo | b4c5f4e | 2020-11-11 12:05:23 -0800 | [diff] [blame] | 118 | registry: '{{ .Values.global.image_registry }}' |
| 119 | repository: '{{ .Values.global.image_org }}voltha-rw-core' |
Jan Klare | ea3ab39 | 2023-10-31 14:27:23 +0100 | [diff] [blame] | 120 | tag: '{{- if hasKey .Values.global "image_tag" }}{{- if .Values.global.image_tag }}{{ .Values.global.image_tag }}{{- else }}3.4.8{{- end }}{{- else }}3.4.8{{- end }}' |
Matteo Scandolo | b4c5f4e | 2020-11-11 12:05:23 -0800 | [diff] [blame] | 121 | pullPolicy: '{{ .Values.global.image_pullPolicy }}' |
David K. Bainbridge | 637751d | 2021-03-25 22:18:08 +0000 | [diff] [blame] | 122 | |
| 123 | ingress: |
| 124 | enabled: false |
| 125 | annotations: |
| 126 | kubernetes.io/ingress.class: "nginx" |
| 127 | nginx.ingress.kubernetes.io/ssl-redirect: "true" |
| 128 | nginx.ingress.kubernetes.io/backend-protocol: "GRPC" |
| 129 | nginx.ingress.kubernetes.io/grpc-backend: "true" |
| 130 | enableVirtualHosts: false |
Matteo Scandolo | c2c917a | 2021-04-06 09:15:31 -0700 | [diff] [blame] | 131 | baseHostname: local |
David K. Bainbridge | 637751d | 2021-03-25 22:18:08 +0000 | [diff] [blame] | 132 | hosts: |
| 133 | - host: |
| 134 | paths: |
| 135 | - "/voltha.VolthaService/" |
| 136 | tls: [] |
Matteo Scandolo | b65a5a7 | 2021-04-30 16:16:05 -0700 | [diff] [blame] | 137 | |
| 138 | # ofAgent needs to connect to multiple instances of ONOS. |
| 139 | onos_classic: |
| 140 | onosOfPort: 6653 |
| 141 | replicas: 1 |
Andrey Pozolotin | 7e928a9 | 2021-08-13 12:37:24 +0200 | [diff] [blame] | 142 | |
| 143 | resources: |
| 144 | rw_core: |
| 145 | requests: |
| 146 | cpu: 500m |
| 147 | memory: 100Mi |
| 148 | limits: |
| 149 | cpu: ~ |
| 150 | memory: ~ |
| 151 | ofagent: |
| 152 | requests: |
| 153 | cpu: 300m |
| 154 | memory: 50Mi |
| 155 | limits: |
| 156 | cpu: ~ |
| 157 | memory: ~ |
Andrey Pozolotin | da75c92 | 2021-08-24 17:41:08 +0200 | [diff] [blame] | 158 | |
| 159 | # Define scheduling rules for stack pods |
| 160 | scheduleRules: |
| 161 | preferStackPodsOnSameNode: false |
| 162 | preferStacksOnDifferentNodes: false |