For testing ci/cd pipeline
Infrastructure Repo
docker build -t simple-node-app:latest .
docker run -d -p 3000:3000 simple-node-app
Access the app at http://localhost:3000
Create a github action pipeline to build a custom image of jenkins that contain kubectl, this make it faster 🚀 to push to DockerHub than using my laptop 💻
kubectl get services -n jenkins-ns
└─ mohamed@DevOps:$ kubectl get services -n app-ns
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
app-load-balancer LoadBalancer 10.52.15.131 146.148.76.237 80:31744/TCP 6m44s