Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 1 | {{/* |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | # Copyright 2019-present Open Networking Foundation |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 3 | |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 5 | */}} |
| 6 | |
Hyunsun Moon | 83ff735 | 2020-07-09 11:03:52 -0700 | [diff] [blame] | 7 | {{- if .Values.config.spgwc.deploy }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 8 | --- |
| 9 | apiVersion: v1 |
| 10 | kind: ConfigMap |
| 11 | metadata: |
| 12 | name: spgwc |
| 13 | labels: |
| 14 | {{ tuple "spgwc" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 15 | data: |
Ajay Lotan Thakur | b48ed2d | 2020-07-01 11:58:51 -0700 | [diff] [blame] | 16 | cp.cfg: | |
| 17 | [GLOBAL] |
| 18 | CP_TYPE = 03 |
| 19 | GX_CONFIG = 0 |
Ajay Lotan Thakur | b48ed2d | 2020-07-01 11:58:51 -0700 | [diff] [blame] | 20 | S5S8_PORT = 2123 |
Ajay Lotan Thakur | b48ed2d | 2020-07-01 11:58:51 -0700 | [diff] [blame] | 21 | UPF_PFCP_PORT = 8805 |
Hyunsun Moon | 7f03a77 | 2020-09-27 23:23:50 -0500 | [diff] [blame^] | 22 | S11_PORT = {{ .Values.config.spgwc.s11.port }} |
| 23 | PFCP_PORT = {{ .Values.config.spgwc.n4.port }} |
Hyunsun Moon | 11d24f9 | 2020-08-26 14:55:19 -0700 | [diff] [blame] | 24 | PROMETHEUS_PORT = {{ .Values.config.spgwc.prometheus.port }} |
Hyunsun Moon | 7f03a77 | 2020-09-27 23:23:50 -0500 | [diff] [blame^] | 25 | HTTP_PORT = {{ .Values.config.spgwc.rest.port }} |
| 26 | TRANSMIT_TIMER = {{ .Values.config.spgwc.global.transmitTimerSec }} |
| 27 | PERIODIC_TIMER = {{ .Values.config.spgwc.global.periodicTimerSec }} |
| 28 | TRANSMIT_COUNT = {{ .Values.config.spgwc.global.transmitCount }} |
| 29 | REQUEST_TIMEOUT = {{ .Values.config.spgwc.global.requestTimeoutMilliSec }} |
| 30 | REQUEST_TRIES = {{ .Values.config.spgwc.global.requestTries }} |
| 31 | CP_LOGGER = {{ .Values.config.spgwc.global.cpLogger }} |
Ajay Lotan Thakur | b48ed2d | 2020-07-01 11:58:51 -0700 | [diff] [blame] | 32 | [NAMESERVER_CONFIG] |
| 33 | [CACHE] |
Hyunsun Moon | 7f03a77 | 2020-09-27 23:23:50 -0500 | [diff] [blame^] | 34 | concurrent = {{ .Values.config.spgwc.dns.cache.concurrent }} |
| 35 | percentage = {{ .Values.config.spgwc.dns.cache.percentage }} |
| 36 | interval_seconds = {{ .Values.config.spgwc.dns.cache.intervalSec }} |
| 37 | query_timeout_ms = {{ .Values.config.spgwc.dns.cache.queryTimeoutMilliSec }} |
| 38 | query_tries = {{ .Values.config.spgwc.dns.cache.queryTries }} |
Ajay Lotan Thakur | b48ed2d | 2020-07-01 11:58:51 -0700 | [diff] [blame] | 39 | [APP] |
Hyunsun Moon | 7f03a77 | 2020-09-27 23:23:50 -0500 | [diff] [blame^] | 40 | frequency_seconds = {{ .Values.config.spgwc.dns.app.frequencySec }} |
| 41 | filename = {{ .Values.config.spgwc.dns.app.filename }} |
| 42 | nameserver = {{ .Values.config.spgwc.dns.app.nameserver }} |
Ajay Lotan Thakur | b48ed2d | 2020-07-01 11:58:51 -0700 | [diff] [blame] | 43 | [OPS] |
Hyunsun Moon | 7f03a77 | 2020-09-27 23:23:50 -0500 | [diff] [blame^] | 44 | frequency_seconds = {{ .Values.config.spgwc.dns.ops.frequencySec }} |
| 45 | filename = {{ .Values.config.spgwc.dns.ops.filename }} |
| 46 | nameserver = {{ .Values.config.spgwc.dns.ops.nameserver }} |
Ajay Lotan Thakur | b48ed2d | 2020-07-01 11:58:51 -0700 | [diff] [blame] | 47 | [IP_POOL_CONFIG] |
| 48 | IP_POOL_IP= {{.Values.config.spgwc.ueIpPool.ip }} |
| 49 | IP_POOL_MASK= {{ .Values.config.spgwc.ueIpPool.mask }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 50 | spgwc-run.sh: | |
| 51 | {{ tuple "bin/_spgwc-run.sh.tpl" . | include "omec-control-plane.template" | indent 4 }} |
| 52 | {{- range $key, $value := .Values.config.spgwc.cfgFiles }} |
| 53 | {{ $key }}: |- |
| 54 | {{ $value | indent 4 }} |
| 55 | {{- end }} |
Ajay Lotan Thakur | b48ed2d | 2020-07-01 11:58:51 -0700 | [diff] [blame] | 56 | {{- range $key, $value := .Values.config.spgwc.jsonCfgFiles }} |
Hyunsun Moon | 11d24f9 | 2020-08-26 14:55:19 -0700 | [diff] [blame] | 57 | {{ $key }}: |- |
| 58 | {{ toPrettyJson $value | indent 4 }} |
Ajay Lotan Thakur | b48ed2d | 2020-07-01 11:58:51 -0700 | [diff] [blame] | 59 | {{- end }} |
Hyunsun Moon | 83ff735 | 2020-07-09 11:03:52 -0700 | [diff] [blame] | 60 | {{- end }} |