github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/production/helm/loki-stack/templates/tests/loki-test-pod.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 annotations: 5 "helm.sh/hook": test-success 6 labels: 7 app: {{ template "loki-stack.name" . }} 8 chart: {{ template "loki-stack.chart" . }} 9 release: {{ .Release.Name }} 10 heritage: {{ .Release.Service }} 11 name: {{ template "loki-stack.fullname" . }}-test 12 spec: 13 containers: 14 - name: test 15 image: bats/bats:v1.1.0 16 args: 17 - /var/lib/loki/test.sh 18 env: 19 - name: LOKI_SERVICE 20 value: {{ template "loki.serviceName" . }} 21 - name: LOKI_PORT 22 value: "{{ .Values.loki.service.port }}" 23 volumeMounts: 24 - name: tests 25 mountPath: /var/lib/loki 26 restartPolicy: Never 27 volumes: 28 - name: tests 29 configMap: 30 name: {{ template "loki-stack.fullname" . }}-test