No description
- Makefile 48.7%
- JavaScript 38.1%
- Dockerfile 13.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| app1 | ||
| app2 | ||
| app3 | ||
| kind.yaml | ||
| lb-ip.yaml | ||
| Makefile | ||
| README.md | ||
K8s Learning
This repo consist of some yaml files from K8s that hosts a simple nodeJS server app(3), the intent of this repo is to deploy a simple application inside k8s in local machine and also to knoow about how networking works in k8s like service and what are
NodePort, ClusterIP and LoadBalancer in service, ingress what is the diff between ingress and service etc.
Start with
- install
kindon your machine, this basically creates k8s cluster in your local machine(u can customize how many worker nodes and control nodes. - checkout this repo.
- first do
make create-clusterthis will create cluster with1 master node and 3 worker nodes make deploy-appsthis will deploy all the apps into a namespace calleddemo, by default all the service is ofClusterIP, play around with it.make create-lbthis will create a baremetal loadbalancer for our ingress service to use.make create-nginx-ingressthis will install nginx-ingress related pods and services, in this one service will be of type LoadBalancer which uses the metallb externalIP provider.make deploy-ingressthis deploys ingress rules of our apps.