- privileged: {{ .Values.e2term.privilegedmode }}
-
-{{ if .Values.e2term.pizpub.enabled }}
- - name: {{ include "common.containername.e2term" . }}-pizpub
- image: {{ include "common.repository" . }}/{{ .Values.e2term.pizpub.imageName }}:{{ .Values.e2term.pizpub.imageVersion }}
- imagePullPolicy: {{ include "common.pullPolicy" . }}
+ privileged: {{ .privilegedmode }}
+ {{- if eq $health.liveness.enabled true }}
+ readinessProbe:
+ exec:
+ command: [ "/bin/sh", "-c", "{{ $health.readiness.command }}:{{ include "common.serviceport.e2term.rmr.data" . }}" ]
+ initialDelaySeconds: {{ $health.readiness.initialDelaySeconds }}
+ periodSeconds: {{ $health.readiness.periodSeconds }}
+ {{- end }}
+ {{- if eq $health.liveness.enabled true }}
+ livenessProbe:
+ exec:
+ command: [ "/bin/sh", "-c", "{{ $health.liveness.command }}:{{ include "common.serviceport.e2term.rmr.data" . }}" ]
+ initialDelaySeconds: {{ $health.liveness.initialDelaySeconds }}
+ periodSeconds: {{ $health.liveness.periodSeconds }}
+ {{- end }}
+{{ if .pizpub.enabled }}
+ - name: {{ include "common.containername.e2term" $topCtx }}-pizpub
+ {{- $pizpubimagectx := dict "ctx" $topCtx "defaultregistry" .pizpub.image.registry }}
+ image: {{ include "common.dockerregistry.url" $pizpubimagectx }}/{{ .pizpub.image.name }}:{{ .pizpub.image.tag }}
+ imagePullPolicy: {{ include "common.dockerregistry.pullpolicy" $pullpolicyctx }}