Start custom k3s image including Argo CD #1475
-
Using k3d I'm trying to start a custom docker image that contains Argo CD. Dockerfile:
entypoint.sh:
When then triggering k3d using the custom image: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey! What you'd probably want to do here is using K3s auto-deploy manifests functionality - checkout auto-deploying manifests here: https://k3d.io/v5.7.2/usage/k3s/?h=manifests#general-k3s-documentation If you really need to use entrypoint scripts, you may be able to add them to the entrypoint scripts dir which will then be picked up by the main entrypoint (I'd have to look up where that was again though) |
Beta Was this translation helpful? Give feedback.
Hey!
Yes, k3d uses a custom entrypoint for various pre-start operations.
Using a custom image just for installing ArgoCD seems overkill 🤔
Also that entrypoint script you shared would not start K3s at all, right? It's blocking at the end (and K3s would have to start before you install ArgoCD).
What you'd probably want to do here is using K3s auto-deploy manifests functionality - checkout auto-deploying manifests here: https://k3d.io/v5.7.2/usage/k3s/?h=manifests#general-k3s-documentation
If you really need to use entrypoint scripts, you may be able to add them to the entrypoint scripts dir which will then be picked up by the main entrypoint (I'd have to look up where that was again though)