job.yaml 483 B

12345678910111213141516171819202122
  1. apiVersion: batch/v1
  2. kind: Job
  3. metadata:
  4. name: opensearch-configure
  5. spec:
  6. template:
  7. spec:
  8. containers:
  9. - name: opensearch-configure
  10. image: nixery.dev/shell/curl/jq
  11. command: ["/bin/bash"]
  12. args: ["/usr/local/bin/script.sh"]
  13. volumeMounts:
  14. - mountPath: /usr/local/bin
  15. name: scripts
  16. volumes:
  17. - name: scripts
  18. configMap:
  19. name: opensearch-scripts
  20. restartPolicy: Never
  21. backoffLimit: 0