Update omec-user-plan chart
1) Add an option to send gratuitous ARP reply
2) Add default dnn and hostname
3) Change the image name used in coredump init container to tools
4) Adjust resource req/limits for init container
5) Update pfcp agent container name from cpiface to pfcp-agent
Change-Id: I110c7d7cc6f58ab20ae7d374ae92d72e315cd80e
diff --git a/omec/omec-user-plane/Chart.yaml b/omec/omec-user-plane/Chart.yaml
index da7e40a..0a09e6e 100644
--- a/omec/omec-user-plane/Chart.yaml
+++ b/omec/omec-user-plane/Chart.yaml
@@ -7,4 +7,4 @@
name: omec-user-plane
icon: https://guide.opencord.org/logos/cord.svg
-version: 0.3.33
+version: 0.3.34
diff --git a/omec/omec-user-plane/templates/_helpers.tpl b/omec/omec-user-plane/templates/_helpers.tpl
index 56f80d7..f2d1a61 100644
--- a/omec/omec-user-plane/templates/_helpers.tpl
+++ b/omec/omec-user-plane/templates/_helpers.tpl
@@ -34,7 +34,7 @@
{{- $pod := index . 0 -}}
{{- $context := index . 1 -}}
- name: {{ $pod }}-coredump-init
- image: {{ $context.Values.images.tags.init | quote }}
+ image: {{ $context.Values.images.tags.tools | quote }}
imagePullPolicy: {{ $context.Values.images.pullPolicy }}
securityContext:
privileged: true
diff --git a/omec/omec-user-plane/templates/statefulset-upf.yaml b/omec/omec-user-plane/templates/statefulset-upf.yaml
index 050f0aa..f933a5f 100644
--- a/omec/omec-user-plane/templates/statefulset-upf.yaml
+++ b/omec/omec-user-plane/templates/statefulset-upf.yaml
@@ -68,11 +68,11 @@
- NET_ADMIN
resources:
limits:
- cpu: 256m
- memory: 128Mi
+ cpu: 128m
+ memory: 64Mi
requests:
- cpu: 256m
- memory: 128Mi
+ cpu: 128m
+ memory: 64Mi
{{- if .Values.config.coreDump.enabled }}
{{ tuple "upf" . | include "omec-user-plane.coredump_init" | indent 6 }}
{{- end }}
@@ -175,7 +175,7 @@
resources:
{{ toYaml .Values.resources.web | indent 10 }}
{{- end }}
- - name: cpiface
+ - name: pfcp-agent
image: {{ .Values.images.tags.pfcpiface | quote }}
imagePullPolicy: {{ .Values.images.pullPolicy | quote }}
command: ["pfcpiface"]
@@ -191,6 +191,26 @@
mountPath: /pod-share
- name: configs
mountPath: /tmp/conf
+ {{- if .Values.config.gratuitousArp.enabled }}
+ - name: arping
+ image: {{ .Values.images.tags.tools | quote }}
+ imagePullPolicy: {{ .Values.images.pullPolicy | quote }}
+ command: ["sh", "-xec"]
+ args:
+ - |
+ while true; do
+ arping -c 3 -A -I {{ index $accessConfig "ifname" }} {{ (split "/" .Values.config.upf.access.ip)._0 }}
+ arping -c 3 -A -I {{ index $coreConfig "ifname" }} {{ (split "/" .Values.config.upf.core.ip)._0 }}
+ sleep {{ .Values.config.gratuitousArp.interval }}
+ done
+ resources:
+ limits:
+ cpu: 128m
+ memory: 64Mi
+ requests:
+ cpu: 128m
+ memory: 64Mi
+ {{- end }}
volumes:
- name: configs
configMap:
diff --git a/omec/omec-user-plane/values.yaml b/omec/omec-user-plane/values.yaml
index e52f2ad..858048c 100644
--- a/omec/omec-user-plane/values.yaml
+++ b/omec/omec-user-plane/values.yaml
@@ -4,9 +4,9 @@
images:
tags:
- init: docker.io/omecproject/pod-init:1.0.0
bess: registry.aetherproject.org/proxy/omecproject/upf-epc-bess:master-49283ad
pfcpiface: registry.aetherproject.org/proxy/omecproject/upf-epc-pfcpiface:master-49283ad
+ tools: registry.aetherproject.org/tools/busybox:stable
pullPolicy: IfNotPresent
# Secrets must be manually created in the namespace.
pullSecrets:
@@ -53,6 +53,9 @@
coreDump:
enabled: false
path: /tmp/coredump
+ gratuitousArp:
+ enabled: false
+ interval: 10 # seconds
upf:
# Enable privileged when run from VM with sriov support
privileged: false
@@ -91,6 +94,9 @@
core:
ifname: core
measure: true
+ cpiface:
+ dnn: "internet"
+ hostname: "upf"
service:
type: ClusterIP