service.yaml 892 B

1234567891011121314151617181920212223242526
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: {{ template "podinfo.fullname" . }}-service-test-{{ randAlphaNum 5 | lower }}
  5. namespace: {{ include "podinfo.namespace" . }}
  6. labels:
  7. {{- include "podinfo.labels" . | nindent 4 }}
  8. annotations:
  9. "helm.sh/hook": test-success
  10. "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
  11. sidecar.istio.io/inject: "false"
  12. linkerd.io/inject: disabled
  13. appmesh.k8s.aws/sidecarInjectorWebhook: disabled
  14. spec:
  15. containers:
  16. - name: curl
  17. image: curlimages/curl:7.69.0
  18. command:
  19. - sh
  20. - -c
  21. - |
  22. curl -s ${PODINFO_SVC}{{ trimSuffix "/" (.Values.prefix | default "/") }}/api/info | grep version
  23. env:
  24. - name: PODINFO_SVC
  25. value: "{{ template "podinfo.fullname" . }}.{{ include "podinfo.namespace" . }}:{{ .Values.service.externalPort }}"
  26. restartPolicy: Never