Site not reachable at www.capstone2project.tech, even though configured on AKS

Rayan Chowdhury 0 Reputation points
2024-04-16T05:04:48.7733333+00:00

I have been on my University project, on 'Financial Fraud Detection' and had made an app using php scripts etc, containerized it using Docker (made three containers for frontend, backend and mysql database), created deployments and service files alongwith ingress files and had uploaded it on AKS (I have even pushed my docker containers on docker hub and also on Azure contaner registry). Later purchased a domain with the name www.capstoneproject.tech, updated on my registrar with the external ip address of my nginx-controller (type loadbalancer) for A and CNAME records, and then tried to start my website but it is still not working (shows sight unreachable)

Have also checked the following things, everything seems to be fine

Just to provide further information

C:\Users\Rayan>kubectl get pods

NAME READY STATUS RESTARTS AGE

htdocs-backend-deployment-6f87489769-4thpk 1/1 Running 0 8h

htdocs-frontend-deployment-785f45bc5-2ckx5 1/1 Running 0 8h

htdocs-mysql-deployment-789b846f44-fffbp 1/1 Running 0 8h

nginx-ingress-ingress-nginx-controller-7756947456-dqdqn 1/1 Running 0 8h

C:\Users\Rayan>kubectl get nodes

NAME STATUS ROLES AGE VERSION

aks-agentpool-69385674-vmss00000c Ready agent 60m v1.28.5

aks-agentpool-69385674-vmss00000d Ready agent 59m v1.28.5

Here are the logs from my ingress-controller

C:\Users\Rayan>kubectl logs -n default nginx-ingress-ingress-nginx-controller-7756947456-dqdqn ------------------------------------------------------------------------------- NGINX Ingress controller Release: v1.10.0 Build: 71f78d49f0a496c31d4c19f095469f3f23900f8a Repository: https://github.com/kubernetes/ingress-nginx nginx version: nginx/1.25.3 ------------------------------------------------------------------------------- W0416 03:53:06.228440 7 client_config.go:618] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work. I0416 03:53:06.228609 7 main.go:205] "Creating API client" host="https://10.0.0.1:443" I0416 03:53:06.261864 7 main.go:249] "Running in Kubernetes cluster" major="1" minor="28" git="v1.28.5" state="clean" commit="9cf543f4f17cbc5b74c24880e77590eeb1af683c" platform="linux/amd64" I0416 03:53:06.457704 7 main.go:101] "SSL fake certificate created" file="/etc/ingress-controller/ssl/default-fake-certificate.pem" I0416 03:53:06.487658 7 ssl.go:536] "loading tls certificate" path="/usr/local/certificates/cert" key="/usr/local/certificates/key" I0416 03:53:06.499743 7 nginx.go:265] "Starting NGINX Ingress controller" I0416 03:53:06.516687 7 event.go:364] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"default", Name:"nginx-ingress-ingress-nginx-controller", UID:"f5bb1ed3-6850-4120-98bd-8bc2c6432dbb", APIVersion:"v1", ResourceVersion:"11120", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap default/nginx-ingress-ingress-nginx-controller I0416 03:53:07.609615 7 store.go:440] "Found valid IngressClass" ingress="default/htdocs-ingress" ingressclass="nginx" I0416 03:53:07.610422 7 event.go:364] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"default", Name:"htdocs-ingress", UID:"7901796d-78be-4abe-a687-e16975ae5dac", APIVersion:"networking.k8s.io/v1", ResourceVersion:"984269", FieldPath:""}): type: 'Normal' reason: 'Sync' Scheduled for sync I0416 03:53:07.708954 7 nginx.go:308] "Starting NGINX process" I0416 03:53:07.712866 7 leaderelection.go:250] attempting to acquire leader lease default/nginx-ingress-ingress-nginx-leader... I0416 03:53:07.713393 7 nginx.go:328] "Starting validation webhook" address=":8443" certPath="/usr/local/certificates/cert" keyPath="/usr/local/certificates/key" I0416 03:53:07.713839 7 controller.go:190] "Configuration changes detected, backend reload required" I0416 03:53:07.717621 7 status.go:84] "New leader elected" identity="nginx-ingress-ingress-nginx-controller-7756947456-s9nvj" I0416 03:53:07.780927 7 controller.go:210] "Backend successfully reloaded" I0416 03:53:07.781022 7 controller.go:221] "Initial sync, sleeping for 1 second" I0416 03:53:07.781263 7 event.go:364] Event(v1.ObjectReference{Kind:"Pod", Namespace:"default", Name:"nginx-ingress-ingress-nginx-controller-7756947456-dqdqn", UID:"79c489c3-1987-4157-b7c1-d882f736dd0e", APIVersion:"v1", ResourceVersion:"985544", FieldPath:""}): type: 'Normal' reason: 'RELOAD' NGINX reload triggered due to a change in configuration I0416 03:53:39.792507 7 leaderelection.go:260] successfully acquired lease default/nginx-ingress-ingress-nginx-leader I0416 03:53:39.792847 7 status.go:84] "New leader elected" identity="nginx-ingress-ingress-nginx-controller-7756947456-dqdqn" I0416 03:53:39.806951 7 status.go:304] "updating Ingress status" namespace="default" ingress="htdocs-ingress" currentValue=null newValue=[{"ip":"20.235.135.15"}] I0416 03:53:39.815956 7 event.go:364] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"default", Name:"htdocs-ingress", UID:"7901796d-78be-4abe-a687-e16975ae5dac", APIVersion:"networking.k8s.io/v1", ResourceVersion:"986625", FieldPath:""}): type: 'Normal' reason: 'Sync' Scheduled for sync

C:\Users\Rayan>kubectl get ingress NAME CLASS HOSTS ADDRESS PORTS AGE htdocs-ingress www.capstone2project.tech 20.235.135.15 80 8d

Please help me out in solving this issue

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
396 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,869 questions
{count} votes