diff --git a/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml b/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml index 19ef0d9c89381763d6fa117afc1b9bc04e43b3d6..8b690bbb0fd6d9857a8982758d6662420d5737a0 100644 --- a/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml +++ b/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml @@ -17,14 +17,6 @@ spec: securityContext: runAsUser: 0 initContainers: - - name: cleanup - image: busybox:1.28 - command: ['sh', '-c', 'if [ -f "/etc/snmp_exporter/generator.yml" ]; then touch /internalcomm/ok.init; fi'] - volumeMounts: - - name: config-volume - mountPath: /etc/snmp_exporter - - name: internal-comm - mountPath: /internalcomm - name: init-config image: busybox:1.28 command: ['sh', '-c', 'if [ ! -f "/etc/snmp_exporter/snmp.yml" ]; then cp /etc/snmp_exporter_init/snmp.yml /etc/snmp_exporter; fi'] @@ -45,6 +37,12 @@ spec: mountPath: /etc/snmp_exporter - name: internal-comm mountPath: /etc/internalcomm + startupProbe: + exec: + command: + - /bin/sh + - -c + - if [ -f "/etc/snmp_exporter/generator.yml" ]; then touch /internalcomm/ok.init; fi livenessProbe: exec: command: