76 lines
2.5 KiB
YAML
76 lines
2.5 KiB
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: "{{ include "hapi-fhir-jpaserver.fullname" . }}-test-endpoints"
|
|
labels:
|
|
{{- include "hapi-fhir-jpaserver.labels" . | nindent 4 }}
|
|
{{ include "hapi-fhir-jpaserver.fullname" . }}-client: "true"
|
|
annotations:
|
|
"helm.sh/hook": test
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: test-metadata-endpoint
|
|
image: docker.io/curlimages/curl:7.84.0@sha256:5a2a25d96aa941ea2fc47acc50122f7c3d007399a075df61a82d6d2c3a567a2b
|
|
command: ["curl", "--fail-with-body"]
|
|
args: ["http://{{ include "hapi-fhir-jpaserver.fullname" . }}:{{ .Values.service.port }}/fhir/metadata?_summary=true"]
|
|
{{- with .Values.restrictedContainerSecurityContext }}
|
|
securityContext:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
resources:
|
|
limits:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
livenessProbe:
|
|
exec:
|
|
command: ["true"]
|
|
readinessProbe:
|
|
exec:
|
|
command: ["true"]
|
|
- name: test-patient-endpoint
|
|
image: docker.io/curlimages/curl:7.84.0@sha256:5a2a25d96aa941ea2fc47acc50122f7c3d007399a075df61a82d6d2c3a567a2b
|
|
command: ["curl", "--fail-with-body"]
|
|
args: ["http://{{ include "hapi-fhir-jpaserver.fullname" . }}:{{ .Values.service.port }}/fhir/Patient?_count=1&_summary=true"]
|
|
{{- with .Values.restrictedContainerSecurityContext }}
|
|
securityContext:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
resources:
|
|
limits:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
livenessProbe:
|
|
exec:
|
|
command: ["true"]
|
|
readinessProbe:
|
|
exec:
|
|
command: ["true"]
|
|
- name: test-metrics-endpoint
|
|
image: docker.io/curlimages/curl:7.84.0@sha256:5a2a25d96aa941ea2fc47acc50122f7c3d007399a075df61a82d6d2c3a567a2b
|
|
command: ["curl", "--fail-with-body"]
|
|
args: ["http://{{ include "hapi-fhir-jpaserver.fullname" . }}:{{ .Values.metrics.service.port }}/actuator/prometheus"]
|
|
{{- with .Values.restrictedContainerSecurityContext }}
|
|
securityContext:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
resources:
|
|
limits:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
livenessProbe:
|
|
exec:
|
|
command: ["true"]
|
|
readinessProbe:
|
|
exec:
|
|
command: ["true"]
|