PHOENIX-MEDIA / magento2-helm

Helm Chart to deploy Magento2 in Kubernetes
38 stars 11 forks source link

Ingress not conneting to domain #10

Closed francesco-di-marcantonio closed 9 months ago

francesco-di-marcantonio commented 10 months ago

Hi there, so finally we deployed the infrastructure. Now we are trying to connect to application but the ingress is not managing the domain.

we changed values in this files:

+++ values

ingress:

Set to true to enable ingress record generation

enabled: true

ingressClassName: nginx

certManager: true useProxyProtocol: true annotations: {}

## The list of hostnames to be covered with this ingress record.
## Most likely this will be just one host, but in the event more hosts are needed, this is an array

hosts:

tlsSecret: site-cert

+++values_gke

managedCert: enabled: true domains:

ingress: enabled: true certManager: true hosts:

Uncomment this section and update with your values

- name: domain.it
  paths:
  - path: "/"
    serviceName: varnish
    servicePort: 8080

k get ingress

return this:

NAME CLASS HOSTS ADDRESS PORTS AGE magento <none> domain.it 34.149.75.162 80 2d4h

the application looks deployed but we receive

Error: Client network socket disconnected before secure TLS connection was established

for https

and no answer for http

francesco-di-marcantonio commented 10 months ago

Adding some images from console Schermata del 2024-01-11 18-43-49

Schermata del 2024-01-11 18-42-41

Schermata del 2024-01-11 18-43-59

francesco-di-marcantonio commented 10 months ago

From inside the container if we ping the host we receive no answer.

(but the host is correctly redirecting to the internal ip)

Schermata del 2024-01-11 18-48-13

phoenix-bjoern commented 10 months ago

@francesco-di-marcantonio Ingress configuration varies on managed K8S services. Check the K8S provider's documentation on how to configure incoming traffic and if ingress is managed outside of K8S. In the ingress configuration always reference the service varnish or magento, never the pod or deployment.

ping usually doesn't work with K8S services. Use nslookup magento instead. It should resolve the service IP.