blob: 663af6391c13218c5c08e3d6225100b56ae99119 [file] [log] [blame]
Hyunsun Moon06f98552019-08-15 13:44:47 -06001{{/*
2Copyright 2019-present Open Networking Foundation
Hyunsun Moon636e17d2019-07-03 12:52:15 -05003
Hyunsun Moon06f98552019-08-15 13:44:47 -06004Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
Hyunsun Moon636e17d2019-07-03 12:52:15 -05007
Hyunsun Moon06f98552019-08-15 13:44:47 -06008http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/}}
16
Hyunsun Mooned24cac2019-08-26 20:52:20 -050017{{- $configJson := index .Values.config.mme.cfgFiles "config.json" }}
18{{- $configJsonS6a := index $configJson "s6a" }}
19
20{{- if not (hasKey $configJsonS6a "host") -}}
21{{- $_ := tuple "hss" "identity" . | include "omec-control-plane.endpoint_lookup" | set $configJsonS6a "host" -}}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050022{{- end }}
Hyunsun Mooned24cac2019-08-26 20:52:20 -050023{{- if not (hasKey $configJsonS6a "realm") -}}
24{{- $_ := tuple "hss" "realm" . | include "omec-control-plane.endpoint_lookup" | set $configJsonS6a "realm" -}}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050025{{- end }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050026---
27apiVersion: v1
28kind: ConfigMap
29metadata:
Hyunsun Moon06f98552019-08-15 13:44:47 -060030 name: mme
31 labels:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060032{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050033data:
Hyunsun Moon636e17d2019-07-03 12:52:15 -050034 s6a_fd.conf: |
Hyunsun Mooned24cac2019-08-26 20:52:20 -050035 Identity = {{ tuple "mme" "identity" . | include "omec-control-plane.endpoint_lookup" | quote }};
36 Realm = {{ tuple "mme" "realm" . | include "omec-control-plane.endpoint_lookup" | quote }};
37 TLS_Cred = "conf/{{ tuple "mme" "host" . | include "omec-control-plane.endpoint_lookup" }}.cert.pem",
38 "conf/{{ tuple "mme" "host" . | include "omec-control-plane.endpoint_lookup" }}.key.pem";
39 TLS_CA = "conf/cacert.pem";
Hyunsun Moon636e17d2019-07-03 12:52:15 -050040 AppServThreads = 40;
41 SCTP_streams = 3;
42 NoRelay;
43 No_IPv6;
Hyunsun Mooned24cac2019-08-26 20:52:20 -050044 #Port = 3868;
45 #SecPort = 3869;
Hyunsun Moon636e17d2019-07-03 12:52:15 -050046
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060047 ConnectPeer = {{ tuple "hss" "identity" . | include "omec-control-plane.endpoint_lookup" | quote }} { No_TLS; port = 3868; };
Hyunsun Moon636e17d2019-07-03 12:52:15 -050048
Hyunsun Moon636e17d2019-07-03 12:52:15 -050049 LoadExtension = "/usr/local/lib/freeDiameter/dict_3gpp2_avps.fdx";
Hyunsun Moon636e17d2019-07-03 12:52:15 -050050 LoadExtension = "/usr/local/lib/freeDiameter/dict_draftload_avps.fdx";
51 LoadExtension = "/usr/local/lib/freeDiameter/dict_etsi283034_avps.fdx";
52 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4004_avps.fdx";
53 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4006bis_avps.fdx";
54 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4072_avps.fdx";
55 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4590_avps.fdx";
56 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5447_avps.fdx";
57 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5580_avps.fdx";
58 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5777_avps.fdx";
59 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5778_avps.fdx";
Hyunsun Moon636e17d2019-07-03 12:52:15 -050060 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc6734_avps.fdx";
61 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc6942_avps.fdx";
62 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc7155_avps.fdx";
63 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc7683_avps.fdx";
64 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc7944_avps.fdx";
65 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29061_avps.fdx";
66 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29128_avps.fdx";
67 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29154_avps.fdx";
68 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29173_avps.fdx";
69 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29212_avps.fdx";
70 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29214_avps.fdx";
71 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29215_avps.fdx";
72 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29217_avps.fdx";
73 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29229_avps.fdx";
74 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29272_avps.fdx";
75 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29273_avps.fdx";
76 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29329_avps.fdx";
77 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29336_avps.fdx";
78 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29337_avps.fdx";
79 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29338_avps.fdx";
80 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29343_avps.fdx";
81 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29344_avps.fdx";
82 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29345_avps.fdx";
83 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29368_avps.fdx";
84 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29468_avps.fdx";
85 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts32299_avps.fdx";
Hyunsun Moon636e17d2019-07-03 12:52:15 -050086 LoadExtension = "/usr/local/lib/freeDiameter/dict_S6as6d.fdx";
87 LoadExtension = "/usr/local/lib/freeDiameter/dict_S6c.fdx";
Hyunsun Moon636e17d2019-07-03 12:52:15 -050088 LoadExtension = "/usr/local/lib/freeDiameter/dict_S6t.fdx";
Hyunsun Moon636e17d2019-07-03 12:52:15 -050089 LoadExtension = "/usr/local/lib/freeDiameter/dict_SGd.fdx";
Hyunsun Moon636e17d2019-07-03 12:52:15 -050090 LoadExtension = "/usr/local/lib/freeDiameter/dict_T6aT6bT7.fdx";
Hyunsun Moon636e17d2019-07-03 12:52:15 -050091 mme-init.sh: |
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060092{{ tuple "bin/_mme-init.sh.tpl" . | include "omec-control-plane.template" | indent 4 }}
Hyunsun Moon16d70922019-08-25 04:57:25 -050093 mme-run.sh: |
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060094{{ tuple "bin/_mme-run.sh.tpl" . | include "omec-control-plane.template" | indent 4 }}
Hyunsun Moon16d70922019-08-25 04:57:25 -050095{{- if not (hasKey .Values.config.spgwc "mmeAddr") }}
96 mme-ip.sh: |
97{{ tuple "bin/_mme-ip.sh.tpl" . | include "omec-control-plane.template" | indent 4 }}
98{{- end }}
Hyunsun Mooned24cac2019-08-26 20:52:20 -050099{{- range $key, $value := .Values.config.mme.cfgFiles }}
100 {{ $key }}: {{ toJson $value | quote }}
101{{- end }}