This commit is contained in:
23
charts/kreuzberg/templates/tests/test-connection.yaml
Normal file
23
charts/kreuzberg/templates/tests/test-connection.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ include "kreuzberg.fullname" . }}-test-connection"
|
||||
labels:
|
||||
{{- include "kreuzberg.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
spec:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 65534
|
||||
containers:
|
||||
- name: wget
|
||||
image: busybox:1.37-glibc
|
||||
command: ['wget']
|
||||
args: ['--spider', '--timeout=5', '{{ include "kreuzberg.fullname" . }}:{{ .Values.service.port }}/health']
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
restartPolicy: Never
|
||||
Reference in New Issue
Block a user