# limitations under the License. #
################################################################################
{{- $topCtx := . }}
+{{- $health := .Values.health }}
{{- range keys .Values.e2term }}
{{- $key := . }}
{{- with index $topCtx.Values.e2term . }}
name: {{ include "common.deploymentname.e2term" $topCtx }}-{{ $key }}
namespace: {{ include "common.namespace.platform" $topCtx }}
labels:
- app: {{ include "common.namespace.platform" $topCtx }}-{{ include "common.name.e2term" $topCtx }}
+ app: {{ include "common.namespace.platform" $topCtx }}-{{ include "common.name.e2term" $topCtx }}-{{ $key }}
chart: {{ $topCtx.Chart.Name }}-{{ $topCtx.Chart.Version | replace "+" "_" }}
release: {{ $topCtx.Release.Name }}
heritage: {{ $topCtx.Release.Service }}
replicas: {{ .replicaCount }}
selector:
matchLabels:
- app: {{ include "common.namespace.platform" $topCtx }}-{{ include "common.name.e2term" $topCtx }}
+ app: {{ include "common.namespace.platform" $topCtx }}-{{ include "common.name.e2term" $topCtx }}-{{ $key }}
release: {{ $topCtx.Release.Name }}
template:
metadata:
{{- end }}
{{- end }}
labels:
- app: {{ include "common.namespace.platform" $topCtx }}-{{ include "common.name.e2term" $topCtx }}
+ app: {{ include "common.namespace.platform" $topCtx }}-{{ include "common.name.e2term" $topCtx }}-{{ $key }}
release: {{ $topCtx.Release.Name }}
spec:
hostname: {{ include "common.name.e2term" $topCtx }}-{{ $key }}
containerPort: {{ include "common.serviceport.e2term.rmr.route" $topCtx }}
- name: "rmrdata-{{ $key }}"
containerPort: {{ include "common.serviceport.e2term.rmr.data" $topCtx }}
- - name: "rmrsctp-{{ $key }}"
+ - name: "sctp-{{ $key }}"
containerPort: 36422
- protocol: SCTP
+ protocol: SCTP
+ - name: "prmts-{{ $key }}"
+ containerPort: {{ include "common.serviceport.e2term.prometheus" $topCtx }}
stdin: true
tty: true
securityContext:
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 }}