EDGEPOD-399 Remove bess config files from the chart
Change-Id: Idd14d9165a6265d6e3aa24af707820fae1d0c7f6
diff --git a/omec/omec-user-plane/templates/statefulset-spgwu.yaml b/omec/omec-user-plane/templates/statefulset-spgwu.yaml
index 64e123d..376b3d9 100644
--- a/omec/omec-user-plane/templates/statefulset-spgwu.yaml
+++ b/omec/omec-user-plane/templates/statefulset-spgwu.yaml
@@ -60,7 +60,7 @@
env:
- name: PYTHONUNBUFFERED
value: "1"
- command: ["/bin/conf/route_control.py"]
+ command: ["/opt/bess/bessctl/conf/route_control.py"]
args:
- -i
- {{ .Values.config.spgwu.s1u.device }}
@@ -69,9 +69,6 @@
resources:
{{ toYaml .Values.resources.routectl | indent 10 }}
{{- end }}
- volumeMounts:
- - name: scripts
- mountPath: /bin/conf
- name: bessd
image: {{ .Values.images.tags.bess | quote }}
imagePullPolicy: {{ .Values.images.pullPolicy | quote }}
@@ -87,7 +84,7 @@
lifecycle:
postStart:
exec:
- command: ["/bin/conf/bessd-poststart.sh"]
+ command: ["/etc/bess/conf/bessd-poststart.sh"]
livenessProbe:
tcpSocket:
port: 10514
@@ -110,13 +107,14 @@
intel.com/sriov_vfio_s1u_net: 1
intel.com/sriov_vfio_sgi_net: 1
{{- end }}
+ env:
+ - name: CONF_FILE
+ value: /etc/bess/conf/spgwu.json
volumeMounts:
- name: hugepages
mountPath: /dev/hugepages
- name: configs
- mountPath: /opt/bess/bessctl/conf
- - name: scripts
- mountPath: /bin/conf
+ mountPath: /etc/bess/conf
{{- if .Values.config.coreDump.enabled }}
- name: coredump
mountPath: /tmp/coredump
@@ -129,11 +127,6 @@
resources:
{{ toYaml .Values.resources.web | indent 10 }}
{{- end }}
- volumeMounts:
- - name: configs
- mountPath: /opt/bess/bessctl/conf
- - name: scripts
- mountPath: /bin/conf
- name: cpiface
image: {{ .Values.images.tags.cpiface | quote }}
imagePullPolicy: {{ .Values.images.pullPolicy | quote }}
@@ -166,10 +159,6 @@
- name: configs
configMap:
name: spgwu
- defaultMode: 420
- - name: scripts
- configMap:
- name: spgwu
defaultMode: 493
- name: hugepages
emptyDir: