cactus-check.yaml 506 B

123456789101112131415
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: "{{ .Release.Name }}-cactus-deployment-test"
  5. annotations:
  6. "helm.sh/hook": test
  7. spec:
  8. hostNetwork: true
  9. restartPolicy: Never
  10. containers:
  11. - name: {{ .Release.Name }}-cactus-deployment-test
  12. image: busybox
  13. # Note: Adding sleep 15, as even when cactus pod status is ready, I've seen API
  14. # taking a few seconds to be live and running.
  15. command: ['sh', '-c', 'sleep 30 && nc -vz {{ .Values.nodeIP }} {{ .Values.cactus.apiPort }}']