diff --git a/charts/free5gc/charts/free5gc-amf/templates/amf-service.yaml b/charts/free5gc/charts/free5gc-amf/templates/amf-service.yaml index 13f6d02..42c24cb 100644 --- a/charts/free5gc/charts/free5gc-amf/templates/amf-service.yaml +++ b/charts/free5gc/charts/free5gc-amf/templates/amf-service.yaml @@ -38,11 +38,16 @@ apiVersion: v1 kind: Service metadata: name: {{ include "free5gc-amf.fullname" $ }}-{{ $.Values.global.amf.service.ngap.name }} + annotations: + {{- with $.Values.global.amf.service.ngap.annotations }} + {{- toYaml . | nindent 4 }} + {{- end }} labels: project: {{ $.Values.global.projectName }} nf: {{ .name }} spec: type: {{ $.Values.global.amf.service.ngap.type }} + loadBalancerClass: "loxilb.io/loxilb" ports: - name: n2 port: {{ $.Values.global.amf.service.ngap.port }} diff --git a/charts/free5gc/values.yaml b/charts/free5gc/values.yaml index ad9116a..60da543 100644 --- a/charts/free5gc/values.yaml +++ b/charts/free5gc/values.yaml @@ -30,12 +30,17 @@ global: ipAddress: 10.100.50.249 service: ngap: - enabled: false + enabled: true name: amf-n2 port: 38412 - nodeport: 31412 protocol: SCTP - type: NodePort + type: LoadBalancer + loadBalancerClass: "loxilb.io/loxilb" # + annotations: + loxilb.io/probetype: "none" + loxilb.io/lbmode: "fullproxy" + loxilb.io/epselect: "n2" + loxilb.io/lbclass: "loxilb.io/loxilb" smf: n4if: ipAddress: 10.100.50.244