https://github.com/lmammino/minikube-helm-init-container
Sample helm based web application using an init container
https://github.com/lmammino/minikube-helm-init-container
api argo argocd k8s kubernetes node nodejs
Last synced: 4 months ago
JSON representation
Sample helm based web application using an init container
- Host: GitHub
- URL: https://github.com/lmammino/minikube-helm-init-container
- Owner: lmammino
- License: mit
- Created: 2020-03-12T15:50:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-12T17:04:36.000Z (over 5 years ago)
- Last Synced: 2025-03-30T05:43:40.644Z (6 months ago)
- Topics: api, argo, argocd, k8s, kubernetes, node, nodejs
- Language: Smarty
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sample-helm
Sample helm based web application using an init container
Needs: `minikube` and `helm`
## 1. Build images
To build the images inside minikube use:
```bash
./images/dump-envs/build.sh
./images/env-web-server/build.sh
```## 2. Install chart
To install the chart:
```bash
helm install test-env-web charts/env-web-server
```## 3. Debug
To access the actual applications from your machine:
```bash
minikube service test-env-web
```To visualize the state of the system:
```bash
kubectl get all
```or, if you prefer a visual dashboard:
```bash
minikube dashboard
```To visualize the logs:
```bash
# show pods
kubectl get pods
kubectl logs
```To visualize the logs for an init container
```bash
kubectl logs -c # (in our case "test-env-web-init")
```## Deploy with argo-cd
Needs: `argo-cd` and an authenticated argo cli
To create as argocd app
```bash
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)
## License
MIT licensed. See full [LICENSE](LICENSE)