Ingress for Kibana- the browser did not recognize the hostname

Hi,
If possible-
I have a question:
this is my kibana:

apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: quickstart
spec:
  version: 7.6.2
  count: 1
  elasticsearchRef:
    name: cdbridgerpayelasticsearch
  http:
    service:
        spec:
            type: LoadBalancer

the kibana ran well (the LB too)

and this is my Ingress:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
    cert-manager.io/cluster-issuer: "letsencrypt-http"
  name: bcd-ingress-kibana-bcd
spec:
  rules:
  - host: kibana.some.net
    http:
      paths:
      - backend:
          serviceName: quickstart
          servicePort: 5601
        path: /
  tls:
  - hosts:
    - kibana.some.net
    

when I ran: kubectl get ingress
I got:

$ kubectl get ingress
W0614 15:48:48.425600 1675 gcp.go:120] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
To learn more, consult Kubectl auth changes in GKE v1.25 : gke-gcloud-auth-plugin | Google Cloud Blog
NAME CLASS HOSTS ADDRESS PORTS AGE
kibana-ingress-bcd kibana.some.net 80 5m24s

and when I tried browsing with this host-
the browsre didnt recognize this hostname.

If anyone knows what the problem is - it will help me a lotץ
thanks
Frida

Hi,

What is the IP behind the hostname "kibana.some.net", did you set something like external IP and DNS on gcloud?

Probably not ... Basically I have a LoadBalancer that works:

apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: quickstart
spec:
  version: 7.6.2
  count: 1
  elasticsearchRef:
    name: bcdbridgerpayelasticsearch
  http:
    service:
        spec:
            type: LoadBalancer

The browser (image link)- With the ip

when I ran kubectl get svc I got:

...
bcdkb-kb-http ClusterIP 10.40.15.178 5601/TCP 5h24m
bcdkbbcd-kb-http ClusterIP 10.40.1.21 5601/TCP 5h8m
bcdkbcd-kb-http LoadBalancer 10.40.13.177 35.184.16.35 5601:32223/TCP 3h54m
kubernetes ClusterIP 10.40.0.1 443/TCP 5h43m
...

But I do not really know what to do now ...
Can you guide me what to do?

Thank you!!!

Looks you don't have the correct DNS for your kibana URL kibana.some.net, you need to set a DNS record from gcloud to map you kibana URL with the IP 35.202.76.151.

What do you mean? Because I have already set up LoadBalancer inside the kibana?

google what is DNS.

can you give me an example?
or you can write me what I have to fix in my code?
(Because I know there are those who have done it this way)
this is my ingress:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
    cert-manager.io/cluster-issuer: "letsencrypt-http"
  name: bcd-ingress-kibana-bcd
spec:
  rules:
  - host: kibana.some.net
    http:
      paths:
      - backend:
          serviceName: quickstart
          servicePort: 5601
        path: /
  tls:
  - hosts:
    - kibana.some.net

can you tell me if I have add some line/ remove/ change?
(I did not understand how the link you sent related to this)
thanks