https://github.com/k-candidate/hello-dev
https://github.com/k-candidate/hello-dev
argo argo-cd argocd container docker dockerfile gha github-actions k8s keda keda-scalers kubernetes trivy trivy-scan
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/k-candidate/hello-dev
- Owner: k-candidate
- Created: 2024-01-09T15:22:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-01T00:12:15.000Z (over 1 year ago)
- Last Synced: 2025-02-16T19:15:22.511Z (8 months ago)
- Topics: argo, argo-cd, argocd, container, docker, dockerfile, gha, github-actions, k8s, keda, keda-scalers, kubernetes, trivy, trivy-scan
- Language: HTML
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hello-dev

Miro board: https://miro.com/app/board/uXjVN8cKiGo=/?share_link_id=396473428527- This repo corresponds to the dev env. It is the one that is responsible for building the image and pushing it to Docker Hub: https://hub.docker.com/r/kcandidate/hello
- Once we know that the image works as expected, then we can promote it to prod. In this case, we simply do it by changing the image tag in https://github.com/k-candidate/hello-prod/blob/main/resources/hello-deploy.yaml
- ArgoCD takes care of the deployments for both dev and prod: https://github.com/k-candidate/argocd-demo-install## Demo
To demonstrate, do the following:
- Clone the repo
- Change the version in `index.html` and `resources/hello-deploy.yaml`
- Push
```
git add .
git commit -m "feat: newer version"
git tag v1.0.8
git push origin --tags v1.0.8
git push
```
- Github Actions will take care of building and pushing the image to Docker Hub.
- ArgoCD will take care of deploying the new version to dev.
- Make sure that all works ok in dev.
- If you deem this version stable, and decide to upgrade prod, then simply change the image tag in https://github.com/k-candidate/hello-prod/blob/main/resources/hello-deploy.yaml and ArgoCD will take care of deploying the new image to prod.## TO DO:
- [x] Use `trivy` to scan the image for vulnerabilities and upload results to Security tab.
- [x] Add Autoscaling using KEDA.