Files
Homelabv4/infrastructure/vault/manifests/vault-init-job.yaml
T
Scooby HuskyandClaude Opus 4.6 306d374ede Fix bitnami/kubectl image tag in hook jobs
The bitnami/kubectl:1.31 tag doesn't exist on Docker Hub. Updated all
hook jobs to use bitnami/kubectl:latest.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 17:57:08 -05:00

28 lines
712 B
YAML

apiVersion: batch/v1
kind: Job
metadata:
name: vault-init
namespace: vault
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
argocd.argoproj.io/sync-wave: "1"
spec:
backoffLimit: 3
template:
spec:
serviceAccountName: argocd-hook-sa
containers:
- name: vault-init
image: bitnami/kubectl:latest
command: ["/bin/bash", "/scripts/vault-init-and-store.sh"]
volumeMounts:
- name: scripts
mountPath: /scripts
volumes:
- name: scripts
configMap:
name: vault-init-script
defaultMode: 0755
restartPolicy: Never