Skip to content

Instantly share code, notes, and snippets.

@lodotek
Created December 10, 2021 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lodotek/9849a41e4ebb3120c2a09314f55ad46c to your computer and use it in GitHub Desktop.
Save lodotek/9849a41e4ebb3120c2a09314f55ad46c to your computer and use it in GitHub Desktop.
argocd-repo-server.yml - ytt
#@ 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