Improve Tornjak backend test (#321)
This commit is contained in:
@@ -163,6 +163,7 @@ spec:
|
|||||||
startupProbe:
|
startupProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
|
path: /api/tornjak/serverinfo
|
||||||
port: 10000
|
port: 10000
|
||||||
{{- toYaml .Values.tornjak.startupProbe | nindent 12 }}
|
{{- toYaml .Values.tornjak.startupProbe | nindent 12 }}
|
||||||
args:
|
args:
|
||||||
|
|||||||
@@ -15,7 +15,13 @@ spec:
|
|||||||
- name: curl-tornjak-backend
|
- name: curl-tornjak-backend
|
||||||
image: cgr.dev/chainguard/bash:latest
|
image: cgr.dev/chainguard/bash:latest
|
||||||
command: ['curl']
|
command: ['curl']
|
||||||
args: ['-k', '-s', '-f', 'http://{{ include "spire-tornjak.backend" . }}.{{ include "spire-server.namespace" . }}.svc.{{ include "spire-lib.cluster-domain" . }}:{{ .Values.tornjak.service.port }}']
|
args: ['-k', '-s', '-f', 'http://{{ include "spire-tornjak.backend" . }}.{{ include "spire-server.namespace" . }}.svc.{{ include "spire-lib.cluster-domain" . }}:{{ .Values.tornjak.service.port }}/api/tornjak/serverinfo']
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.securityContext | nindent 8 }}
|
||||||
|
- name: curl-tornjak-backend-and-spire
|
||||||
|
image: cgr.dev/chainguard/bash:latest
|
||||||
|
command: ['curl']
|
||||||
|
args: ['-k', '-s', '-f', 'http://{{ include "spire-tornjak.backend" . }}.{{ include "spire-server.namespace" . }}.svc.{{ include "spire-lib.cluster-domain" . }}:{{ .Values.tornjak.service.port }}/api/healthcheck']
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 8 }}
|
{{- toYaml .Values.securityContext | nindent 8 }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
|||||||
Reference in New Issue
Block a user