tls.yaml 927 B

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