blob: 2ebbe95cb7e7b6a9c03f0cacd14801e8a0d3d0f7 [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{/*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002# Copyright 2019-present Open Networking Foundation
Jeremy Ronquillo223db002020-06-05 10:28:22 -07003
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07004# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo223db002020-06-05 10:28:22 -07005*/}}
6
Hyunsun Moon83ff7352020-07-09 11:03:52 -07007{{- if .Values.config.spgwc.deploy }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -07008---
9apiVersion: v1
10kind: ConfigMap
11metadata:
12 name: spgwc
13 labels:
14{{ tuple "spgwc" . | include "omec-control-plane.metadata_labels" | indent 4 }}
15data:
Ajay Lotan Thakurb48ed2d2020-07-01 11:58:51 -070016 cp.cfg: |
17 [GLOBAL]
18 CP_TYPE = 03
19 GX_CONFIG = 0
Ajay Lotan Thakurb48ed2d2020-07-01 11:58:51 -070020 S5S8_PORT = 2123
Ajay Lotan Thakurb48ed2d2020-07-01 11:58:51 -070021 UPF_PFCP_PORT = 8805
Hyunsun Moon7f03a772020-09-27 23:23:50 -050022 S11_PORT = {{ .Values.config.spgwc.s11.port }}
23 PFCP_PORT = {{ .Values.config.spgwc.n4.port }}
Hyunsun Moon11d24f92020-08-26 14:55:19 -070024 PROMETHEUS_PORT = {{ .Values.config.spgwc.prometheus.port }}
Hyunsun Moon7f03a772020-09-27 23:23:50 -050025 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 Thakurb48ed2d2020-07-01 11:58:51 -070032 [NAMESERVER_CONFIG]
33 [CACHE]
Hyunsun Moon7f03a772020-09-27 23:23:50 -050034 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 Thakurb48ed2d2020-07-01 11:58:51 -070039 [APP]
Hyunsun Moon7f03a772020-09-27 23:23:50 -050040 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 Thakurb48ed2d2020-07-01 11:58:51 -070043 [OPS]
Hyunsun Moon7f03a772020-09-27 23:23:50 -050044 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 Thakurb48ed2d2020-07-01 11:58:51 -070047 [IP_POOL_CONFIG]
48 IP_POOL_IP= {{.Values.config.spgwc.ueIpPool.ip }}
49 IP_POOL_MASK= {{ .Values.config.spgwc.ueIpPool.mask }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070050 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 Thakurb48ed2d2020-07-01 11:58:51 -070056{{- range $key, $value := .Values.config.spgwc.jsonCfgFiles }}
Hyunsun Moon11d24f92020-08-26 14:55:19 -070057 {{ $key }}: |-
58{{ toPrettyJson $value | indent 4 }}
Ajay Lotan Thakurb48ed2d2020-07-01 11:58:51 -070059{{- end }}
Hyunsun Moon83ff7352020-07-09 11:03:52 -070060{{- end }}