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 535a8be4e28a94e2e5dfb9d17cfc601400da5afb..e3f290e3184222d4a87b9449fe1311b1b223bd99 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 @@ -35,20 +35,13 @@ spec: volumeMounts: - name: config-volume 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 /etc/internalcomm/ok.init; fi livenessProbe: exec: command: - /bin/sh - -c - - if [ ! -f "/etc/snmp_exporter/generator.yml" ] || [ -f "/etc/internalcomm/ok.init" ]; then exit 0; else exit 1; fi + - if [ ! -f "/etc/snmp_exporter/generator.yml" ]; then exit 0; else rm -f /etc/snmp_exporter/generator.yml && exit 1; fi + failureThreshold: 1 resources: {{- toYaml .Values.resources | nindent 12 }} volumes: @@ -58,6 +51,4 @@ spec: - name: init-config-volume configMap: name: snmp-init-config - - name: internal-comm - emptyDir: {} \ No newline at end of file