Created
April 25, 2023 23:18
-
-
Save EvilFreelancer/db5e70c635467be2a8c0526aed81a62c to your computer and use it in GitHub Desktop.
Использование "хуков"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # templates/post-install-job.yaml | |
| apiVersion: batch/v1 | |
| kind: Job | |
| metadata: | |
| name: {{ .Release.Name }}-post-install | |
| annotations: | |
| "helm.sh/hook": post-install | |
| "helm.sh/hook-weight": "10" | |
| spec: | |
| template: | |
| spec: | |
| containers: | |
| - name: post-install | |
| image: "{{ .Values.postInstallJob.image.repository }}:{{ .Values.postInstallJob.image.tag }}" | |
| command: ['sh', '-c', '/scripts/post-install.sh'] | |
| restartPolicy: OnFailure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment