github.com/oam-dev/kubevela@v1.9.11/docs/examples/argo/deploy.yaml (about) 1 # kubectl -n argocd patch deploy/argocd-repo-server -p "$(cat deploy.yaml)" 2 3 spec: 4 template: 5 spec: 6 # 1. Define an emptyDir volume which will hold the custom binaries 7 volumes: 8 - name: custom-tools 9 emptyDir: {} 10 - name: vela-kubeconfig 11 configMap: 12 name: vela-kubeconfig 13 # 2. Use an init container to download/copy custom binaries into the emptyDir 14 initContainers: 15 - name: download-tools 16 image: oamdev/argo-tool:v1 17 command: [sh, -c] 18 args: 19 - cp /app/vela /custom-tools/vela 20 volumeMounts: 21 - mountPath: /custom-tools 22 name: custom-tools 23 # 3. Volume mount the custom binary to the bin directory (overriding the existing version) 24 containers: 25 - name: argocd-repo-server 26 env: 27 - name: KUBECONFIG 28 value: /home/argocd/.kube/config 29 volumeMounts: 30 - mountPath: /usr/local/bin/vela 31 name: custom-tools 32 subPath: vela 33 - mountPath: /home/argocd/.kube/ 34 name: vela-kubeconfig