Sample helm based web application using an init container
Needs: minikube
and helm
To build the images inside minikube use:
./images/dump-envs/build.sh
./images/env-web-server/build.sh
To install the chart:
helm install test-env-web charts/env-web-server
To access the actual applications from your machine:
minikube service test-env-web
To visualize the state of the system:
kubectl get all
or, if you prefer a visual dashboard:
minikube dashboard
To visualize the logs:
# show pods
kubectl get pods
kubectl logs <pod-id>
To visualize the logs for an init container
kubectl logs <pod-id> -c <init-container-name> # (in our case "test-env-web-init")
Needs: argo-cd
and an authenticated argo cli
To create as argocd app
argocd app create test-env-web \
--repo https://github.com/lmammino/minikube-helm-init-container \
--path argocd \
--dest-namespace default \
--dest-server https://kubernetes.default.svc \
--directory-recurse
Keep in mind that the images in this project are NOT published anywhere, so you need to build them locally before you can deploy the app.
This particular setup requires manual synchronisation of deployments (it will not check git)
MIT licensed. See full LICENSE