Gopinath Taget | 5e49fe3 | 2018-06-25 17:02:05 -0700 | [diff] [blame] | 1 | {{- /* |
| 2 | Copyright 2017-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 | |
Gopinath Taget | 5e49fe3 | 2018-06-25 17:02:05 -0700 | [diff] [blame] | 17 | {{- define "voltha-vcore.cmd" }} |
| 18 | - "voltha/voltha/main.py" |
Gopinath Taget | 5e49fe3 | 2018-06-25 17:02:05 -0700 | [diff] [blame] | 19 | - "--etcd=etcd-cluster.default.svc.cluster.local:2379" |
Luca Prete | 78f8b08 | 2018-06-26 10:49:34 +0200 | [diff] [blame] | 20 | - "--kafka={{ .Values.kafkaReleaseName }}.default.svc.cluster.local" |
Gopinath Taget | 5e49fe3 | 2018-06-25 17:02:05 -0700 | [diff] [blame] | 21 | - "--rest-port=8880" |
| 22 | - "--grpc-port=50556" |
| 23 | - "--interface=eth1" |
| 24 | - "--backend=etcd" |
| 25 | - "--pon-subnet=10.38.0.0/12" |
| 26 | - "--ponsim-comm=grpc" |
Gopinath Taget | 7f357cf | 2018-07-03 12:34:38 -0700 | [diff] [blame] | 27 | - "--core-number-extractor=^.*-([0-9]+)_.*$" |
Gopinath Taget | 5e49fe3 | 2018-06-25 17:02:05 -0700 | [diff] [blame] | 28 | {{- end }} |
Zack Williams | c8c32e0 | 2018-11-04 14:43:21 -0700 | [diff] [blame] | 29 | |
| 30 | {{- define "logconfig.yml" }} |
| 31 | version: 1 |
| 32 | |
| 33 | formatters: |
| 34 | default: |
| 35 | format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s' |
| 36 | datefmt: '%Y%m%dT%H%M%S' |
| 37 | |
| 38 | handlers: |
| 39 | console: |
| 40 | class : logging.StreamHandler |
| 41 | formatter: default |
| 42 | stream: ext://sys.stdout |
| 43 | localRotatingFile: |
| 44 | class: logging.handlers.RotatingFileHandler |
| 45 | filename: voltha.log |
| 46 | formatter: default |
| 47 | maxBytes: 2097152 |
| 48 | backupCount: 10 |
| 49 | kafka: |
| 50 | class: kafkaloghandler.KafkaLogHandler |
| 51 | bootstrap_servers: |
| 52 | - "cord-kafka.default:9092" |
| 53 | topic: "voltha.log.{{ .KafkaTopic }}" |
| 54 | |
| 55 | loggers: |
| 56 | '': |
| 57 | handlers: [console, localRotatingFile, kafka] |
| 58 | level: DEBUG |
| 59 | propagate: False |
| 60 | {{- end }} |