K8s Deployment Paths
This folder contains two deployment paths for the same app image (bomeravi/docs:latest).
Folder layout
k8s/kubernetes/- directkubectl applymanifests (used by Jenkins pipeline).k8s/argocd/- Argo CDApplicationmanifest that points tok8s/kubernetes.
Manifests are numbered (01-, 02-, ...) so execution order is explicit.
Branch flow
Use two git branches for your release flow:
jenkinsbranch:- Runs
Jenkinsfile. - Builds and pushes
bomeravi/docs:latest. - Applies manifests from
k8s/kubernetesusingkubectl.
- Runs
argocdbranch:- Keeps Argo CD app config in
k8s/argocd. - Argo CD syncs
k8s/kubernetesfrom the branch.
- Keeps Argo CD app config in
Docker image tag
This setup always uses:
docker push bomeravi/docs:latest