Created
December 10, 2021 15:56
-
-
Save lodotek/9849a41e4ebb3120c2a09314f55ad46c to your computer and use it in GitHub Desktop.
argocd-repo-server.yml - ytt
This file contains 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
#@ load("@ytt:overlay", "overlay") | |
#@overlay/match by=overlay.subset({"kind":"Deployment","metadata":{"name":"argocd-repo-server"}}) | |
--- | |
spec: | |
template: | |
spec: | |
volumes: | |
#@overlay/append | |
- name: carvel | |
emptyDir: {} | |
#@overlay/match missing_ok=True | |
initContainers: | |
#@overlay/append | |
- name: install-carvel | |
image: docker.io/k14s/image | |
command: | |
- bash | |
- -ce | |
args: | |
- | | |
mv `which ytt` ${K14SIO_INSTALL_BIN_DIR} | |
mv `which kbld` ${K14SIO_INSTALL_BIN_DIR} | |
# or if you want to install the latest carvel tools | |
# wget -O- https://carvel.dev/install.sh | bash | |
env: | |
- name: K14SIO_INSTALL_BIN_DIR | |
value: /carvel | |
volumeMounts: | |
- mountPath: /carvel | |
name: carvel | |
containers: | |
#@overlay/match by="name" | |
- name: argocd-repo-server | |
volumeMounts: | |
#@overlay/append | |
- mountPath: /usr/local/bin/ytt | |
name: carvel | |
subPath: ytt | |
#@overlay/append | |
- mountPath: /usr/local/bin/kbld | |
name: carvel | |
subPath: kbld |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment