you’ll need ingress controller which adds a LoadBalancer Service and in case of cloud setup it’ll add a cloud load balancer. The you can add ingress. The DNS should point to the loadbalancer IP.
if you just wish to test you can kubectl port-forward the erpnext service on port 8080 and ping. curl -H "Host: site-name.example.com" http://localhost:8080/api/method/ping
port-forward 8080:8080, internal nginx service is also running on port 8080
For traefik your ingress/ ingressClass will change.
Figure out the LB and networking, and you should be able to access the site. I’ve not used traefik as ingress-controller, should be similar to kubernetes/ingress-nginx
followed by the Generate Ingress YAML and Create Ingress resource (Apply)
After I install NGINX like this
helm install ingress-nginx ingress-nginx --repo Welcome - NGINX Ingress Controller --namespace ingress-nginx --create-namespace
Do you think this is the step i’m doing wrong! Reason why there is no link between the LB and Erpnext-Nginx ? I mean port 80
Also i see the the new installed NGINX creates a new POD with different nginx.conf
Before ingress is created ingress controller should be in place.
Once ingress controller is setup, you’ll have a LoadBalancer service and a cloud load balancer with public IP. Use this IP to configure DNS for all sites.
After ingress-controller, ip/dns configuration create Ingress resource. It should point to erpnext service on port 8080. (I don’t know from where you came up with 80 and repeating it in your posts, it won’t work on port 80, it runs on port 8080)
Ingress resource tells to serve the service/port combination through ingress controller.
I’d recommend start with Digitalocean or Scaleway single VM managed cluster. It will only cost you 1 VM to have a production-like environment to try things on.
Hi @revant_one
Once again thank you for your tips and links on Kubernetes…
I have managed to create and run my local VMs with Kubernetes.
Managed also to create my Custom images and cert-manager running too.
Now playing around with multiple sites on the same Pods as the purpose of all this will be to move my Production (around 30 sites) to Kubernetes… If you have any advise on this please, i will be very pleased to hear.