Skip to content

NAMGroup/open5gsK8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open5Gs on K8s

Deploying the core

One UPF

To deploy the core with one UPF the following parameters are required on deployment:

  • amf.lbIP="THE AMF IP"
  • upf.upf1IP="THE UPF IP"
  • dnn.upf1="dnn1"

Two UPFs

To deploy the core with two UPFs the following parameters are required on deployment:

  • amf.lbIP="THE AMF IP"
  • upf.upfs="2"
  • upf.upf1IP="THE FIRST UPF IP"
  • upf.upf2IP="THE SECOND UPF IP"
  • dnn.upf1="dnn1"
  • dnn.upf2="dnn2"

Deploying the UPF

To deploy a UPF the following parameters are required on deployment:

  • upf.config="1|2 (upf 1 or upf 2)"
  • upf.lbIP="the UPF IP we want from the LB"
  • upf.tun="tun subnet number - 45, 46, ..."
  • upf.dnn="dnn"

Examples

Example 1 UPF

Deploying using Helm

helm install -n open5gs-hack -f values.yaml 5gcore ./ --set amf.lbIP="10.10.10.221",upf.upf1IP="10.10.10.222",dnn.upf1="dnn1"
helm install -n open5gs-hack -f values.yaml upf1 ./ --set upf.config="1",upf.lbIP="10.10.10.222",upf.tun="45",upf.dnn="internet"

Deploying using OSM (--config)

{
	"additionalParamsForVnf": [{
		"member-vnf-index": "1",
		"additionalParamsForKdu": [{
			"kdu_name": "open5gs",
			"k8s-namespace": "open5gs-hack",
			"additionalParams": {
				"amf": {
					"lbIP": "10.10.10.221"
				},
				"upf": {
					"upf1IP": "10.10.10.222"
				},
				"dnn": {
					"upf1": "internet"
				}
			}
		}]
	}]
}
{
	"additionalParamsForVnf": [{
		"member-vnf-index": "1",
		"additionalParamsForKdu": [{
			"kdu_name": "upf",
			"k8s-namespace": "open5gs-hack",
			"additionalParams": {
				"upf": {
				"config": "1",
				"lbIP": "10.10.10.222",
				"tun": "45",
				"dnn": "internet"
				}
			}
		}]
	}]
}

Example 2 UPFs (one at the central DC and one at the edge)

Deploying using Helm

# On main cluster
helm install -n open5gs-hack -f values.yaml 5gcore ./ --set amf.lbIP="10.10.10.221",upf.upfs="2",upf.upf1IP="10.10.10.222",upf.upf2IP="172.16.100.161",dnn.upf1="internet",dnn.upf2="work"
helm install -n open5gs-hack -f values.yaml upf1 ./ --set upf.config="1",upf.lbIP="10.10.10.222",upf.tun="45",upf.dnn="internet"

# On edge cluster
helm install -n open5gs-hack -f values.yaml upf2 ./ --set upf.config="2",upf.lbIP="172.16.100.161",upf.tun="46",upf.dnn="work"

Deploying using OSM (--config)

Core (on main cluster)

{
	"additionalParamsForVnf": [{
		"member-vnf-index": "1",
		"additionalParamsForKdu": [{
			"kdu_name": "open5gs",
			"k8s-namespace": "open5gs-hack",
			"additionalParams": {
				"amf": {
					"lbIP": "10.10.10.221"
				},
				"upf": {
					"upfs": "2",
					"upf1IP": "10.10.10.222",
					"upf2IP": "172.16.100.161"
				},
				"dnn": {
					"upf1": "internet",
					"upf2": "work"
				}
			}
		}]
	}]
}

UPF 1 (on main cluster)

{
	"additionalParamsForVnf": [{
		"member-vnf-index": "1",
		"additionalParamsForKdu": [{
			"kdu_name": "upf",
			"k8s-namespace": "open5gs-hack",
			"additionalParams": {
				"upf": {
					"config": "1",
					"lbIP": "10.10.10.222",
					"tun": "45",
					"dnn": "internet"
				}
			}
		}]
	}]
}

UPF 2 (on edge cluster)

{
	"additionalParamsForVnf": [{
		"member-vnf-index": "1",
		"additionalParamsForKdu": [{
			"kdu_name": "upf",
			"k8s-namespace": "open5gs-hack",
			"additionalParams": {
				"upf": {
				"config": "2",
					"lbIP": "172.16.100.161",
					"tun": "46",
					"dnn": "work"
				}
			}
		}]
	}]
}

If the deployment goes into a CrashLoopBackoff run:

helm -n open5gs-hack ls

Get the chart name and run:

helm -n open5gs-hack uninstall chart-name

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages