mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-21 11:36:50 +00:00
The :1.31 tag is gone from Docker Hub and :latest is blocked by Kyverno disallow-latest-tag policy. The 1.29 image is cached on cluster nodes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
710 B
YAML
28 lines
710 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:1.29
|
|
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
|