From 5fc9561dcd4b2630704c192e89887490e2ff3c61 Mon Sep 17 00:00:00 2001 From: Denys Aleksandrov Date: Tue, 13 Jun 2023 15:35:34 +0200 Subject: [PATCH] Remove smf and amf cp kpt packages. (#26) --- free5gc-cp/amf/amf-configmap.yaml | 133 ------------------ free5gc-cp/amf/amf-deployment.yaml | 74 ---------- .../amf/amf-networkattachmentdefinition.yaml | 32 ----- free5gc-cp/amf/amf-service.yaml | 21 --- free5gc-cp/smf/smf-configmap.yaml | 117 --------------- free5gc-cp/smf/smf-deployment.yaml | 78 ---------- .../smf/smf-networkattachmentdefinition.yaml | 32 ----- free5gc-cp/smf/smf-service.yaml | 21 --- 8 files changed, 508 deletions(-) delete mode 100644 free5gc-cp/amf/amf-configmap.yaml delete mode 100644 free5gc-cp/amf/amf-deployment.yaml delete mode 100644 free5gc-cp/amf/amf-networkattachmentdefinition.yaml delete mode 100644 free5gc-cp/amf/amf-service.yaml delete mode 100644 free5gc-cp/smf/smf-configmap.yaml delete mode 100644 free5gc-cp/smf/smf-deployment.yaml delete mode 100644 free5gc-cp/smf/smf-networkattachmentdefinition.yaml delete mode 100644 free5gc-cp/smf/smf-service.yaml diff --git a/free5gc-cp/amf/amf-configmap.yaml b/free5gc-cp/amf/amf-configmap.yaml deleted file mode 100644 index 6f5544c..0000000 --- a/free5gc-cp/amf/amf-configmap.yaml +++ /dev/null @@ -1,133 +0,0 @@ ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: amf-configmap - labels: - app.kubernetes.io/version: "v3.1.1" - app: free5gc - annotations: - config.kubernetes.io/local-config: "true" - -data: - amfcfg.yaml: | - info: - version: 1.0.3 - description: AMF initial local configuration - - configuration: - serviceNameList: - - namf-comm - - namf-evts - - namf-mt - - namf-loc - - namf-oam - - ngapIpList: - - 10.100.50.249 - sbi: - scheme: http - registerIPv4: amf-namf # IP used to register to NRF - bindingIPv4: 0.0.0.0 # IP used to bind the service - port: 80 - tls: - key: config/TLS/amf.key - pem: config/TLS/amf.pem - - nrfUri: http://nrf-nnrf:8000 - amfName: AMF - serviceNameList: - - namf-comm - - namf-evts - - namf-mt - - namf-loc - - namf-oam - servedGuamiList: - - plmnId: - mcc: 208 - mnc: 93 - amfId: cafe00 - supportTaiList: - - plmnId: - mcc: 208 - mnc: 93 - tac: 1 - plmnSupportList: - - plmnId: - mcc: 208 - mnc: 93 - snssaiList: - - sst: 1 - sd: 010203 - - sst: 1 - sd: 112233 - supportDnnList: - - internet - security: - integrityOrder: - - NIA2 - cipheringOrder: - - NEA0 - networkName: - full: free5GC - short: free - locality: area1 # Name of the location where a set of AMF, SMF and UPFs are located - networkFeatureSupport5GS: # 5gs Network Feature Support IE, refer to TS 24.501 - enable: true # append this IE in Registration accept or not - length: 1 # IE content length (uinteger, range: 1~3) - imsVoPS: 0 # IMS voice over PS session indicator (uinteger, range: 0~1) - emc: 0 # Emergency service support indicator for 3GPP access (uinteger, range: 0~3) - emf: 0 # Emergency service fallback indicator for 3GPP access (uinteger, range: 0~3) - iwkN26: 0 # Interworking without N26 interface indicator (uinteger, range: 0~1) - mpsi: 0 # MPS indicator (uinteger, range: 0~1) - emcN3: 0 # Emergency service support indicator for Non-3GPP access (uinteger, range: 0~1) - mcsi: 0 # MCS indicator (uinteger, range: 0~1) - t3502Value: 720 - t3512Value: 3600 - non3gppDeregistrationTimerValue: 3240 - # retransmission timer for paging message - t3513: - enable: true # true or false - expireTime: 6s # default is 6 seconds - maxRetryTimes: 4 # the max number of retransmission - # retransmission timer for NAS Registration Accept message - t3522: - enable: true # true or false - expireTime: 6s # default is 6 seconds - maxRetryTimes: 4 # the max number of retransmission - # retransmission timer for NAS Registration Accept message - t3550: - enable: true # true or false - expireTime: 6s # default is 6 seconds - maxRetryTimes: 4 # the max number of retransmission - # retransmission timer for NAS Authentication Request/Security Mode Command message - t3560: - enable: true # true or false - expireTime: 6s # default is 6 seconds - maxRetryTimes: 4 # the max number of retransmission - # retransmission timer for NAS Notification message - t3565: - enable: true # true or false - expireTime: 6s # default is 6 seconds - maxRetryTimes: 4 # the max number of retransmission - t3570: - enable: true # true or false - expireTime: 6s # default is 6 seconds - maxRetryTimes: 4 # the max number of retransmission - - logger: - AMF: - ReportCaller: false - debugLevel: info - Aper: - ReportCaller: false - debugLevel: info - FSM: - ReportCaller: false - debugLevel: info - NAS: - ReportCaller: false - debugLevel: info - NGAP: - ReportCaller: false - debugLevel: info diff --git a/free5gc-cp/amf/amf-deployment.yaml b/free5gc-cp/amf/amf-deployment.yaml deleted file mode 100644 index 8ec69e4..0000000 --- a/free5gc-cp/amf/amf-deployment.yaml +++ /dev/null @@ -1,74 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: free5gc-amf - labels: - app.kubernetes.io/version: "v3.1.1" - project: free5gc - nf: amf - annotations: - config.kubernetes.io/local-config: "true" -spec: - replicas: 1 - selector: - matchLabels: - project: free5gc - nf: amf - template: - metadata: - annotations: - k8s.v1.cni.cncf.io/networks: '[ - { - "name": "n2network-amf", - "interface": "n2", - "ips": [ "10.100.50.249/29" ], - "gateway": [ "10.100.50.254" ] - } - ]' - labels: - project: free5gc - nf: amf - spec: - initContainers: - - name: wait-nrf - image: towards5gs/initcurl:1.0.0 - env: - - name: DEPENDENCIES - value: http://nrf-nnrf:8000 - command: ['sh', '-c', 'set -x; for dependency in $DEPENDENCIES; do while [ $(curl --insecure --connect-timeout 1 -s -o /dev/null -w "%{http_code}" $dependency) -ne 200 ]; do echo waiting for dependencies; sleep 1; done; done;'] - - containers: - - name: amf - image: towards5gs/free5gc-amf:v3.1.1 - imagePullPolicy: IfNotPresent - ports: - - name: namf - containerPort: 80 - - name: n2 - containerPort: 38412 - protocol: SCTP - command: ["./amf"] - args: ["-c", "../config/amfcfg.yaml"] - env: - - name: GIN_MODE - value: release - volumeMounts: - - mountPath: /free5gc/config/ - name: amf-volume - resources: - limits: - cpu: 150m - memory: 128Mi - requests: - cpu: 150m - memory: 128Mi - dnsPolicy: ClusterFirst - restartPolicy: Always - - volumes: - - name: amf-volume - projected: - sources: - - configMap: - name: amf-configmap diff --git a/free5gc-cp/amf/amf-networkattachmentdefinition.yaml b/free5gc-cp/amf/amf-networkattachmentdefinition.yaml deleted file mode 100644 index e2e6355..0000000 --- a/free5gc-cp/amf/amf-networkattachmentdefinition.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- -apiVersion: "k8s.cni.cncf.io/v1" -kind: NetworkAttachmentDefinition -metadata: - name: n2network-amf - namespace: default - annotations: - config.kubernetes.io/local-config: "true" -spec: - config: '{ - "cniVersion": "0.3.1", - "plugins": [ - { - "type": "macvlan", - "capabilities": { "ips": true }, - "master": "ens3", - "mode": "bridge", - "ipam": { - "type": "static", - "routes": [ - { - "dst": "0.0.0.0/0", - "gw": "10.100.50.254" - } - ] - } - }, { - "capabilities": { "mac": true }, - "type": "tuning" - } - ] - }' diff --git a/free5gc-cp/amf/amf-service.yaml b/free5gc-cp/amf/amf-service.yaml deleted file mode 100644 index 66c893d..0000000 --- a/free5gc-cp/amf/amf-service.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: amf-namf - labels: - app.kubernetes.io/version: "v3.1.1" - project: free5gc - nf: amf - annotations: - config.kubernetes.io/local-config: "true" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: http - selector: - project: free5gc - nf: amf diff --git a/free5gc-cp/smf/smf-configmap.yaml b/free5gc-cp/smf/smf-configmap.yaml deleted file mode 100644 index 9955ff4..0000000 --- a/free5gc-cp/smf/smf-configmap.yaml +++ /dev/null @@ -1,117 +0,0 @@ ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: smf-configmap - labels: - app.kubernetes.io/version: "v3.1.1" - app: free5gc - annotations: - config.kubernetes.io/local-config: "true" -data: - smfcfg.yaml: | - info: - version: 1.0.2 - description: SMF initial local configuration - - configuration: - serviceNameList: - - nsmf-pdusession - - nsmf-event-exposure - - nsmf-oam - - sbi: - scheme: http - registerIPv4: smf-nsmf # IP used to register to NRF - bindingIPv4: 0.0.0.0 # IP used to bind the service - port: 80 - tls: - key: config/TLS/smf.key - pem: config/TLS/smf.pem - - nrfUri: http://nrf-nnrf:8000 - - pfcp: - addr: 192.168.1.10 - smfName: SMF - snssaiInfos: - - sNssai: - sst: 1 - sd: 010203 - dnnInfos: # DNN information list - - dnn: internet # Data Network Name - dns: # the IP address of DNS - ipv4: 8.8.8.8 - - sNssai: - sst: 1 - sd: 112233 - dnnInfos: # DNN information list - - dnn: internet # Data Network Name - dns: # the IP address of DNS - ipv4: 8.8.8.8 - - sNssai: - sst: 2 - sd: 112234 - dnnInfos: - - dnn: internet - dns: - ipv4: 8.8.8.8 - plmnList: # the list of PLMN IDs that this SMF belongs to (optional, remove this key when unnecessary) - - mcc: "208" # Mobile Country Code (3 digits string, digit: 0~9) - mnc: "93" # Mobile Network Code (2 or 3 digits string, digit: 0~9) - userplaneInformation: # list of userplane information - upNodes: # information of userplane node (AN or UPF) - gNB1: # the name of the node - type: AN # the type of the node (AN or UPF) - UPF: # the name of the node - type: UPF # the type of the node (AN or UPF) - nodeID: 192.168.1.2 # the IP/FQDN of N4 interface on this UPF (PFCP) - sNssaiUpfInfos: # S-NSSAI information list for this UPF - - sNssai: # S-NSSAI (Single Network Slice Selection Assistance Information) - sst: 1 # Slice/Service Type (uinteger, range: 0~255) - sd: 010203 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF) - dnnUpfInfoList: # DNN information list for this S-NSSAI - - dnn: internet - pools: - - cidr: 10.1.0.0/16 - interfaces: # Interface list for this UPF - - interfaceType: N3 # the type of the interface (N3 or N9) - endpoints: # the IP address of this N3/N9 interface on this UPF - - 10.0.0.2 - networkInstance: internet # Data Network Name (DNN) - links: # the topology graph of userplane, A and B represent the two nodes of each link - - A: gNB1 - B: UPF - locality: area1 # Name of the location where a set of AMF, SMF and UPFs are located - - logger: - Aper: - ReportCaller: false - debugLevel: info - NAS: - ReportCaller: false - debugLevel: info - NGAP: - ReportCaller: false - debugLevel: info - PFCP: - ReportCaller: false - debugLevel: info - SMF: - ReportCaller: false - debugLevel: info - - - uerouting.yaml: | - info: - version: 1.0.1 - description: Routing information for UE - ueRoutingInfo: - UE1: # Group Name - members: - - imsi-208930000000003 # Subscription Permanent Identifier of the UE - topology: # Network topology for this group (Uplink: A->B, Downlink: B->A) - # default path derived from this topology - # node name should be consistent with smfcfg.yaml - - A: gNB1 - B: UPF diff --git a/free5gc-cp/smf/smf-deployment.yaml b/free5gc-cp/smf/smf-deployment.yaml deleted file mode 100644 index de52d06..0000000 --- a/free5gc-cp/smf/smf-deployment.yaml +++ /dev/null @@ -1,78 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: free5gc-smf - labels: - app.kubernetes.io/version: "v3.1.1" - project: free5gc - nf: smf - annotations: - config.kubernetes.io/local-config: "true" -spec: - replicas: 1 - selector: - matchLabels: - project: free5gc - nf: smf - template: - metadata: - annotations: - k8s.v1.cni.cncf.io/networks: '[ - { - "name": "n4network-smf", - "interface": "n4", - "ips": [ "192.168.1.10/24" ], - "gateway": [ "192.168.1.1" ] - }]' - labels: - project: free5gc - nf: smf - spec: - initContainers: - - name: wait-nrf - image: towards5gs/initcurl:1.0.0 - env: - - name: DEPENDENCIES - value: http://nrf-nnrf:8000 - command: ['sh', '-c', 'set -x; for dependency in $DEPENDENCIES; do while [ $(curl --insecure --connect-timeout 1 -s -o /dev/null -w "%{http_code}" $dependency) -ne 200 ]; do echo waiting for dependencies; sleep 1; done; done;'] - - containers: - - name: smf - image: towards5gs/free5gc-smf:v3.1.1 - imagePullPolicy: IfNotPresent - ports: - - name: nsmf - containerPort: 80 - - name: n4 - containerPort: 8805 - protocol: UDP - command: ["./smf"] - args: ["-c", "../config/smfcfg.yaml", "-u", "../config/uerouting.yaml"] - env: - - name: GIN_MODE - value: release - volumeMounts: - - mountPath: /free5gc/config/ - name: smf-volume - resources: - limits: - cpu: 100m - memory: 128Mi - requests: - cpu: 100m - memory: 128Mi - dnsPolicy: ClusterFirst - restartPolicy: Always - - volumes: - - name: smf-volume - projected: - sources: - - configMap: - name: smf-configmap - items: - - key: smfcfg.yaml - path: smfcfg.yaml - - key: uerouting.yaml - path: uerouting.yaml diff --git a/free5gc-cp/smf/smf-networkattachmentdefinition.yaml b/free5gc-cp/smf/smf-networkattachmentdefinition.yaml deleted file mode 100644 index 746ee8f..0000000 --- a/free5gc-cp/smf/smf-networkattachmentdefinition.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- -apiVersion: "k8s.cni.cncf.io/v1" -kind: NetworkAttachmentDefinition -metadata: - name: n4network-smf - namespace: default - annotations: - config.kubernetes.io/local-config: "true" -spec: - config: '{ - "cniVersion": "0.3.1", - "plugins": [ - { - "type": "macvlan", - "capabilities": { "ips": true }, - "master": "ens3", - "mode": "bridge", - "ipam": { - "type": "static", - "routes": [ - { - "dst": "0.0.0.0/0", - "gw": "192.168.1.1" - } - ] - } - }, { - "capabilities": { "mac": true }, - "type": "tuning" - } - ] - }' diff --git a/free5gc-cp/smf/smf-service.yaml b/free5gc-cp/smf/smf-service.yaml deleted file mode 100644 index 5b8ac39..0000000 --- a/free5gc-cp/smf/smf-service.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: smf-nsmf - labels: - app.kubernetes.io/version: "v3.1.1" - project: free5gc - nf: smf - annotations: - config.kubernetes.io/local-config: "true" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: http - selector: - project: free5gc - nf: smf