templates/hooks.yaml:apiVersion: batch/v1 kind: Job metadata: name: {{ include "app.fullname" . }}-init annotations: helm.sh/hook: pre-install,post-upgrade helm.sh/hook-weight: "0" helm.sh/hook-delete-policy: hook-succeeded spec: template: spec: restartPolicy: Never containers: - name: init image: alpine:3.20 command: ["sh","-c","echo init && sleep 3"]

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部