fi
-
+mkdir /tmp/$CHART_NAME/config/
+mkdir /tmp/$CHART_NAME/descriptors/
cp $CONFIG_JSON_PATH /tmp/$CHART_NAME/config/
cp $DESCRIPTOR_PATH /tmp/$CHART_NAME/descriptors/
{{- $rtmgrrmrservice := .Values.ricplt.rtmgrRMRService | quote -}}
{{- $a1mediatorrmrservice := .Values.ricplt.a1mediatorRMRService | quote -}}
-{{ (.Files.Glob "config/*").AsConfig | replace "__DBAAS_SERVICE__" $dbaasservice | replace "__PLT_INGRESS_URL__" $pltingressurl | replace "__XAPP_INGRESS_URL__" $xappingressurl | replace "__APPMGR_RMR_SERVICE__" $appmgrrmrservice | replace "__E2MGR_RMR_SERVICE__" $e2mgrrmrservice | replace "__E2TERM_RMR_SERVICE__" $e2termrmrservice | replace "__RTMGR_RMR_SERVICE__" $rtmgrrmrservice | replace "__A1MEDIATOR_RMR_SERVICE__" $a1mediatorrmrservice | indent 2 }}
+{{- (.Files.Glob "config/*").AsConfig | replace "__DBAAS_SERVICE__" $dbaasservice | replace "__PLT_INGRESS_URL__" $pltingressurl | replace "__XAPP_INGRESS_URL__" $xappingressurl | replace "__APPMGR_RMR_SERVICE__" $appmgrrmrservice | replace "__E2MGR_RMR_SERVICE__" $e2mgrrmrservice | replace "__E2TERM_RMR_SERVICE__" $e2termrmrservice | replace "__RTMGR_RMR_SERVICE__" $rtmgrrmrservice | replace "__A1MEDIATOR_RMR_SERVICE__" $a1mediatorrmrservice | nindent 2 }}
- name: http
containerPort: {{ .Values.ricxapp.service.http.containerPort }}
protocol: TCP
- - name: rmrRoute
+ - name: rmrroute
containerPort: {{ .Values.ricxapp.service.rmr.route.port }}
protocol: TCP
- - name: rmrData
+ - name: rmrdata
containerPort: {{ .Values.ricxapp.service.rmr.data.port }}
protocol: TCP
volumeMounts:
envFrom:
- configMapRef:
name: {{ include "ricxapp.configmapname" . }}-appenv
+ {{- if .Values.ricxapp.livenessProbe }}
livenessProbe:
- httpGet:
- path: {{ .Values.ricxapp.probes.healthAliveCheckEndpoint }}
- port: {{ .Values.ricxapp.service.http.containerPort }}
- initialDelaySeconds: 5
- periodSeconds: 15
+ {{- .Values.ricxapp.livenessProbe | nindent 12 -}}
+ {{ end }}
+ {{- if .Values.ricxapp.readinessProbe }}
readinessProbe:
- httpGet:
- path: {{ .Values.ricxapp.probes.healthReadyCheckEndpoint }}
- port: {{ .Values.ricxapp.service.http.containerPort }}
- initialDelaySeconds: 5
- periodSeconds: 15
+ {{- .Values.ricxapp.readinessProbe | nindent 12 -}}
+ {{ end }}
restartPolicy: Always
volumes:
- name: config-volume
type: ClusterIP
ports:
- port: {{ .Values.ricxapp.service.rmr.data.port }}
- targetPort: rmrData
+ targetPort: rmrdata
protocol: TCP
- name: rmrData
+ name: rmrdata
- port: {{ .Values.ricxapp.service.rmr.route.port }}
- targetPort: rmrRoute
+ targetPort: rmrroute
protocol: TCP
- name: rmrRoute
+ name: rmrroute
selector:
app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
release: {{ .Release.Name }}
data:
port: 4560
- probes:
- healthAliveCheckEndpoint: ric/v1/health/alive
- healthReadyCheckEndpoint: ric/v1/health/ready
+ livenessProbe: |-
+ httpGet:
+ path: ric/v1/health/alive
+ port: 8080
+ initialDelaySeconds: 5
+ periodSeconds: 15
+
+ readinessProbe: |-
+ httpGet:
+ path: ric/v1/health/ready
+ port: 8080
+ initialDelaySeconds: 5
+ periodSeconds: 15
+
appconfig:
path: /opt/ric/config