mirror of
https://github.com/kubevela/kubevela.git
synced 2026-04-01 00:07:19 +00:00
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
# kubectl -n argocd patch deploy/argocd-repo-server -p "$(cat deploy.yaml)"
|
|
|
|
spec:
|
|
template:
|
|
spec:
|
|
# 1. Define an emptyDir volume which will hold the custom binaries
|
|
volumes:
|
|
- name: custom-tools
|
|
emptyDir: {}
|
|
- name: vela-kubeconfig
|
|
configMap:
|
|
name: vela-kubeconfig
|
|
# 2. Use an init container to download/copy custom binaries into the emptyDir
|
|
initContainers:
|
|
- name: download-tools
|
|
image: oamdev/argo-tool:v1
|
|
command: [sh, -c]
|
|
args:
|
|
- cp /app/vela /custom-tools/vela
|
|
volumeMounts:
|
|
- mountPath: /custom-tools
|
|
name: custom-tools
|
|
# 3. Volume mount the custom binary to the bin directory (overriding the existing version)
|
|
containers:
|
|
- name: argocd-repo-server
|
|
env:
|
|
- name: KUBECONFIG
|
|
value: /home/argocd/.kube/config
|
|
volumeMounts:
|
|
- mountPath: /usr/local/bin/vela
|
|
name: custom-tools
|
|
subPath: vela
|
|
- mountPath: /home/argocd/.kube/
|
|
name: vela-kubeconfig
|