- Docker file
- Docker image creation
- Image pushed to Dockerhub
- Creating pod from images
- Expose the pod through service (Nodeport,cluster-ip)
- Creating deployment for easy replication of pods and etc
- Configure deployments to service (Nodeport,cluster-ip)
- Ingress controller for exposing cluster-ip services to outside
- React and backend application routing using ingress.
- Postgresql installation
- Persistent volume claim for postgresql volume
- Pgadmin installation in k8s.
Docket build with tag: docker build -t tag-name .
k8s: create: kubectl create -f file-name
update: kubectl apply -f file-name
Services: Nodeport: to expose to browser cluster-ip: to expose inside the cluster not to browser Ingress: to expose the services to outside
ingress setup: https://kubernetes.github.io/ingress-nginx/deploy/#provider-specific-steps
URL to access services: http://localhost/rest
Kubectl delete cmd:
kubectl delete pod,service baz foo
kubectl delete pods,services -l name=myLabel
kubectl delete pod 1234-56-7890-234234-456456
kubectl delete pods --all
#Delete the all YAMLS in a folder kubectl delete -f cluster-ip/