Post by mottura » Fri Nov 15, 2024 4:38 pm

Hello,
I am trying to deploy opencart in a kubernetes cluster hosted on virtual machines using Helm.
the deploy is fine and the pods are running. I can reach the loadBalancer IP:

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
opencart LoadBalancer 10.96.3.44 <pending> 80:32745/TCP,443:31664/TCP 17h

the problem is that I can see only text (no CSS or images are loaded) and every link point to the hostname I setup into helm paramter, the name of the node hosting the pods.

this is the helm command line user:

helm install opencart my-repo/opencart -n opencart --set ingress.enabled=true,ingress.ingressClassName=nginx,ingress.hostname=knode,image.debug=true

I can't set a domain on the host running the pod, I need to reach the website only via IP.
PS: it's not a production website, it is used to execute some tests.

What needs to be specified in the ingress.hostname parameter?
Thanks

Newbie

Posts

Joined
Fri Nov 15, 2024 4:25 pm

Post by KevinBlomfield » Mon Nov 18, 2024 8:08 pm

Remove the ingress.hostname parameter
Instead, just use the LoadBalancer IP directly in your browser
https://sdcverifier.com/


Posts

Joined
Fri Jul 19, 2024 6:23 pm

Post by mottura » Tue Nov 19, 2024 12:20 am

Hello,
thanks for your reply.
I tried to deploy without that field, now every link point to "opencart.local" as base url, instead of the one I set previously (knode).

I should have there the IP and port of the LoadBalancer resource right?

PS1: I actually don't have a LoadBalance since I'm not on cloud but on-premise without any hardware load balanced connected to.
PS2: from outside the cluster I can only see the IPs of the 2 nodes (controlplane and worker).

thanks

Newbie

Posts

Joined
Fri Nov 15, 2024 4:25 pm
Who is online

Users browsing this forum: No registered users and 3 guests