matchLabels:
app: {{ include "cps-and-ncmp.name" . }}
component: dmi-stub
+ instance: dmi-stub-1
template:
metadata:
labels:
app: {{ include "cps-and-ncmp.name" . }}
component: dmi-stub
+ instance: dmi-stub-1
spec:
containers:
- name: dmi-stub
ports:
- containerPort: {{ .Values.dmiStub.deployment1.containerPort }}
env:
+ - name: DMI_STUB_SERVER_PORT
+ value: "{{ .Values.dmiStub.deployment1.containerPort }}"
+ - name: MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE
+ value: "health,info"
+ - name: MANAGEMENT_ENDPOINT_HEALTH_SHOW_DETAILS
+ value: "always"
{{- range $key, $value := .Values.dmiStub.env }}
- name: {{ $key }}
value: "{{ $value }}"
{{- toYaml .Values.dmiStub.resources | nindent 12 }}
livenessProbe:
{{- toYaml .Values.dmiStub.livenessProbe.deployment1 | nindent 12 }}
+ readinessProbe:
+ {{- toYaml .Values.dmiStub.readinessProbe.deployment1 | nindent 12 }}
\ No newline at end of file
matchLabels:
app: {{ include "cps-and-ncmp.name" . }}
component: dmi-stub
+ instance: dmi-stub-2
template:
metadata:
labels:
app: {{ include "cps-and-ncmp.name" . }}
component: dmi-stub
+ instance: dmi-stub-2
spec:
containers:
- name: dmi-stub
env:
- name: DMI_STUB_SERVER_PORT
value: "{{ .Values.dmiStub.deployment2.containerPort }}"
+ - name: MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE
+ value: "health,info"
+ - name: MANAGEMENT_ENDPOINT_HEALTH_SHOW_DETAILS
+ value: "always"
{{- range $key, $value := .Values.dmiStub.env }}
- name: {{ $key }}
value: "{{ $value }}"
{{- toYaml .Values.dmiStub.resources | nindent 12 }}
livenessProbe:
{{- toYaml .Values.dmiStub.livenessProbe.deployment2 | nindent 12 }}
+ readinessProbe:
+ {{- toYaml .Values.dmiStub.readinessProbe.deployment2 | nindent 12 }}
selector:
app: {{ include "cps-and-ncmp.name" . }}
component: dmi-stub
+ instance: dmi-stub-1
selector:
app: {{ include "cps-and-ncmp.name" . }}
component: dmi-stub
+ instance: dmi-stub-2
deployment1:
containerPort: 8092
deployment2:
- containerPort: 8093
+ containerPort: 8092
service1:
type: NodePort
port: 8092
nodePort: 30092
service2:
type: NodePort
- port: 8093
+ port: 8092
nodePort: 31092
env:
KAFKA_BOOTSTRAP_SERVER: "cps-ncmp-kafka.default.svc.cluster.local:9092"
livenessProbe:
deployment1:
httpGet:
- path: /actuator/health/readiness
+ path: /actuator/health
+ port: 8092
+ initialDelaySeconds: 60
+ periodSeconds: 30
+ failureThreshold: 5
+ timeoutSeconds: 10
+ deployment2:
+ httpGet:
+ path: /actuator/health
+ port: 8092
+ initialDelaySeconds: 60
+ periodSeconds: 30
+ failureThreshold: 5
+ timeoutSeconds: 10
+ readinessProbe:
+ deployment1:
+ httpGet:
+ path: /actuator/health
port: 8092
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 3
+ timeoutSeconds: 5
deployment2:
httpGet:
- path: /actuator/health/readiness
- port: 8093
+ path: /actuator/health
+ port: 8092
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 3
+ timeoutSeconds: 5