Skip to content

Commit

Permalink
Merge pull request #11 from Gradiant/open5gs
Browse files Browse the repository at this point in the history
Open5gs
  • Loading branch information
cgiraldo authored Jul 21, 2021
2 parents 4af6fd9 + c1f1ecb commit f4de3b1
Show file tree
Hide file tree
Showing 12 changed files with 193 additions and 71 deletions.
2 changes: 1 addition & 1 deletion charts/open5gs/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ maintainers:
- email: [email protected]
name: cgiraldo
name: open5gs
version: 0.2.0
version: 0.2.1
keywords:
- epc
- ngc
Expand Down
27 changes: 20 additions & 7 deletions charts/open5gs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# open5gs

![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![AppVersion: 2.2.3](https://img.shields.io/badge/AppVersion-2.2.3-informational?style=flat-square)
![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![AppVersion: 2.2.3](https://img.shields.io/badge/AppVersion-2.2.3-informational?style=flat-square)

Helm chart to deploy Open5gs services on Kubernetes.

Expand All @@ -20,18 +20,20 @@ Helm chart to deploy Open5gs services on Kubernetes.

| Repository | Name | Version |
|------------|------|---------|
| https://charts.bitnami.com/bitnami | common | 1.x.x |
| https://charts.bitnami.com/bitnami | mongodb | ~9.2.2 |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| amf.logger.level | string | `"info"` | |
| amf.mcc | string | `"001"` | |
| amf.mnc | string | `"01"` | |
| amf.mcc | string | `"901"` | |
| amf.mnc | string | `"70"` | |
| amf.parameter | object | `{}` | |
| amf.region | string | `"2"` | |
| amf.resources | object | `{}` | |
| amf.sd | string | `"1"` | |
| amf.set | string | `"1"` | |
| amf.sst | string | `"1"` | |
| amf.tac | string | `"0001"` | |
Expand All @@ -44,9 +46,14 @@ Helm chart to deploy Open5gs services on Kubernetes.
| image.registry | string | `"docker.io"` | |
| image.repository | string | `"openverso/open5gs"` | |
| image.tag | string | `"2.2.3"` | |
| mme.externalService.enabled | bool | `true` | |
| mme.externalService.externalTrafficPolicy | string | `"Local"` | |
| mme.externalService.loadBalancerIP | string | `nil` | |
| mme.externalService.loadBalancerSourceRanges | list | `[]` | |
| mme.externalService.type | string | `"LoadBalancer"` | |
| mme.logger.level | string | `"info"` | |
| mme.mcc | string | `"001"` | |
| mme.mnc | string | `"01"` | |
| mme.mcc | string | `"901"` | |
| mme.mnc | string | `"70"` | |
| mme.parameter | object | `{}` | |
| mme.resources | object | `{}` | |
| mme.tac | string | `"0001"` | |
Expand All @@ -70,6 +77,12 @@ Helm chart to deploy Open5gs services on Kubernetes.
| sgwc.parameter.no_ipv6 | bool | `true` | |
| sgwc.pool | object | `{}` | |
| sgwc.resources | object | `{}` | |
| sgwu.externalService.advertiseDomain | string | `"ext.openverso.org"` | |
| sgwu.externalService.enabled | bool | `true` | |
| sgwu.externalService.externalTrafficPolicy | string | `"Local"` | |
| sgwu.externalService.loadBalancerIP | string | `nil` | |
| sgwu.externalService.loadBalancerSourceRanges | list | `[]` | |
| sgwu.externalService.type | string | `"LoadBalancer"` | |
| sgwu.logger.level | string | `"info"` | |
| sgwu.max | object | `{}` | |
| sgwu.parameter.no_ipv6 | bool | `true` | |
Expand All @@ -95,8 +108,8 @@ Helm chart to deploy Open5gs services on Kubernetes.
| webui.image.tag | string | `"2.2.3"` | |
| webui.ingress.annotations | object | `{}` | |
| webui.ingress.certManager | bool | `false` | |
| webui.ingress.enabled | bool | `false` | |
| webui.ingress.hostname | string | `"open5gs.local"` | |
| webui.ingress.enabled | bool | `true` | |
| webui.ingress.hostname | string | `"open5gs.ingress.openverso.org"` | |
| webui.ingress.path | string | `"/"` | |
| webui.ingress.pathType | string | `"ImplementationSpecific"` | |
| webui.ingress.tls | bool | `false` | |
Expand Down
33 changes: 17 additions & 16 deletions charts/open5gs/resources/config/amf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,29 @@ amf:
ngap:
dev: eth0
guami:
plmn_id:
mcc: {{ .Values.amf.mcc }}
mnc: {{ .Values.amf.mnc }}
amf_id:
region: {{ .Values.amf.region }}
set: {{ .Values.amf.set }}
- plmn_id:
mcc: {{ .Values.amf.mcc }}
mnc: {{ .Values.amf.mnc }}
amf_id:
region: {{ .Values.amf.region }}
set: {{ .Values.amf.set }}
tai:
plmn_id:
mcc: {{ .Values.amf.mcc }}
mnc: {{ .Values.amf.mnc }}
tac: {{ .Values.amf.tac }}
- plmn_id:
mcc: {{ .Values.amf.mcc }}
mnc: {{ .Values.amf.mnc }}
tac: {{ .Values.amf.tac }}
plmn_support:
plmn_id:
mcc: {{ .Values.amf.mcc }}
mnc: {{ .Values.amf.mnc }}
s_nssai:
sst: {{ .Values.amf.sst }}
- plmn_id:
mcc: {{ .Values.amf.mcc }}
mnc: {{ .Values.amf.mnc }}
s_nssai:
- sst: {{ .Values.amf.sst }}
sd: {{ .Values.amf.sd }}
security:
integrity_order : [ NIA2, NIA1, NIA0 ]
ciphering_order : [ NEA0, NEA1, NEA2 ]
network_name:
full: Open5GS
full: Gradiant
amf_name: open5gs-amf0

nrf:
Expand Down
7 changes: 7 additions & 0 deletions charts/open5gs/resources/config/sgwu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ pool:
sgwu:
gtpu:
dev: eth0
{{- if .Values.sgwu.externalService.enabled }}
{{- if .Values.sgwu.externalService.advertise }}
advertise: {{ .Values.sgwu.advertise }}
{{- else }}
advertise: {{ include "common.names.fullname" . }}-sgwu-ext.{{ .Release.Namespace }}.{{ .Values.sgwu.externalService.advertiseDomain }}
{{- end }}
{{- end }}
pfcp:
dev: eth0

Expand Down
2 changes: 1 addition & 1 deletion charts/open5gs/templates/amf-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
protocol: TCP
- name: ngap
port: 38412
protocol: UDP
protocol: SCTP

publishNotReadyAddresses: true
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
Expand Down
29 changes: 29 additions & 0 deletions charts/open5gs/templates/mme-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,32 @@ spec:
publishNotReadyAddresses: true
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: mme
---
{{- if .Values.mme.externalService.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "common.names.fullname" . }}-mme-ext
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: mme
spec:
type: {{ .Values.mme.externalService.type }}
sessionAffinity: {{ default "None" .Values.mme.externalService.sessionAffinity }}
{{- if and .Values.mme.externalService.clusterIP (eq .Values.mme.externalService.type "ClusterIP") }}
clusterIP: {{ .Values.mme.externalService.clusterIP }}
{{- end }}
{{- if and .Values.mme.externalService.loadBalancerIP (eq .Values.mme.externalService.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.mme.externalService.loadBalancerIP }}
{{- end }}
{{- if and (eq .Values.mme.externalService.type "LoadBalancer") .Values.mme.externalService.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.mme.externalService.externalTrafficPolicy }}
{{- end }}

ports:
- name: s1ap
port: 36412
protocol: SCTP
publishNotReadyAddresses: true
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: mme
{{- end }}
15 changes: 7 additions & 8 deletions charts/open5gs/templates/sgwc-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ metadata:
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: sgwc
spec:
clusterIP: None
# ports:
# - name: gtp-c
# port: 2123
# protocol: UDP
# - name: pfcp
# port: 8805
# protocol: UDP
ports:
- name: gtp-c
port: 2123
protocol: UDP
- name: pfcp
port: 8805
protocol: UDP
publishNotReadyAddresses: true
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: sgwc
43 changes: 35 additions & 8 deletions charts/open5gs/templates/sgwu-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,41 @@ metadata:
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: sgwu
spec:
clusterIP: None
# ports:
# - name: gtp-u
# port: 2152
# protocol: UDP
# - name: pfcp
# port: 8805
# protocol: UDP
ports:
- name: gtp-u
port: 2152
protocol: UDP
- name: pfcp
port: 8805
protocol: UDP
publishNotReadyAddresses: true
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: sgwu
---
{{- if .Values.sgwu.externalService.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "common.names.fullname" . }}-sgwu-ext
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: sgwu
spec:
type: {{ .Values.sgwu.externalService.type }}
sessionAffinity: {{ default "None" .Values.sgwu.externalService.sessionAffinity }}
{{- if and .Values.sgwu.externalService.clusterIP (eq .Values.sgwu.externalService.type "ClusterIP") }}
clusterIP: {{ .Values.sgwu.externalService.clusterIP }}
{{- end }}
{{- if and .Values.sgwu.externalService.loadBalancerIP (eq .Values.sgwu.externalService.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.sgwu.externalService.loadBalancerIP }}
{{- end }}
{{- if and (eq .Values.sgwu.externalService.type "LoadBalancer") .Values.sgwu.externalService.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.sgwu.externalService.externalTrafficPolicy }}
{{- end }}
ports:
- name: gtp-u
port: 2152
protocol: UDP
publishNotReadyAddresses: true
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: sgwu
{{- end }}
27 changes: 13 additions & 14 deletions charts/open5gs/templates/smf-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@ metadata:
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: smf
spec:
clusterIP: None
# ports:
# - name: gtp-c
# port: 2123
# protocol: UDP
# - name: pfcp
# port: 8805
# protocol: UDP
# - name: s6a
# port: 3868
# protocol: SCTP
# - name: sbi
# port: 7777
# protocol: TCP
ports:
- name: gtp-c
port: 2123
protocol: UDP
- name: pfcp
port: 8805
protocol: UDP
- name: s6a
port: 3868
protocol: SCTP
- name: sbi
port: 7777
protocol: TCP
publishNotReadyAddresses: true
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: smf
15 changes: 7 additions & 8 deletions charts/open5gs/templates/upf-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ metadata:
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: upf
spec:
clusterIP: None
# ports:
# - name: gtp-u
# port: 2152
# protocol: UDP
# - name: pfcp
# port: 8805
# protocol: UDP
ports:
- name: gtp-u
port: 2152
protocol: UDP
- name: pfcp
port: 8805
protocol: UDP
publishNotReadyAddresses: true
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: upf
10 changes: 8 additions & 2 deletions charts/open5gs/templates/webui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@ spec:
- name: http
containerPort: 3000
protocol: TCP
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 60
periodSeconds: 30
initialDelaySeconds: 30
periodSeconds: 10
resources:
{{ toYaml .Values.webui.resources | indent 10 }}
terminationGracePeriodSeconds: 30
Loading

0 comments on commit f4de3b1

Please sign in to comment.