This project show how build a Continuous Deployment with Kubernetes, GitHub Actions and AgorCD.
- Docker
- Kubernetes [ https://kubernetes.io/docs/tasks/tools/ ]
- Kind [ https://kind.sigs.k8s.io/docs/user/quick-start ]
- Kustomize [ https://kubectl.docs.kubernetes.io/installation/kustomize/binaries/ ]
- Argo CD [ https://argo-cd.readthedocs.io/en/stable/getting_started/ ]
docker build -t ricardocosta94/kga:latest .
kind create cluster --name=argocd
kubectl cluster-info --context kind-argocd
kubectl get nodes
kubectl apply -f k8s/deployment.yaml
kubectl get pods
[ https://kubernetes.io/docs/concepts/services-networking/service/ ]
kubectl apply -f k8s/service.yaml
kubectl get svc
kubectl port-forward svc/nodeapp 3000:3000
cd k8s && kustomize build
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
kubectl port-forward svc/argocd-server -n argocd 8080:443
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
More details at: https://argo-cd.readthedocs.io/en/stable/getting_started/
kubectl get deploy
kubectl delete deploy nodeapp
kubectl delete svc nodeapp
kubectl create namespace nodeapp
kubectl port-forward svc/nodeapp 3000:3000 -n nodeapp