# Ingress for Kibana- the browser did not recognize the hostname

**URL:** <https://discuss.elastic.co/t/ingress-for-kibana-the-browser-did-not-recognize-the-hostname/307188>\
**Category:** Elasticsearch\
**Created:** [June 14, 2022, 4:18pm UTC](https://discuss.elastic.co/t/ingress-for-kibana-the-browser-did-not-recognize-the-hostname/307188 "2022-06-14T16:18:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frida](https://avatars.discourse-cdn.com/v4/letter/f/57b2e6/32.png) [@Frida](https://discuss.elastic.co/u/Frida)\
**Post date:** [June 14, 2022, 4:18pm UTC](https://discuss.elastic.co/t/ingress-for-kibana-the-browser-did-not-recognize-the-hostname/307188/1 "2022-06-14T16:18:59Z")

</div>

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

```auto
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:

```auto
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 [https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke](https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke)  
> NAME CLASS HOSTS ADDRESS PORTS AGE  
> kibana-ingress-bcd [kibana.some.net](http://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

---

<div class="post-metadata">

**Author:** ![co88liwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/co88liwan/32/100345_2.png) [@co88liwan](https://discuss.elastic.co/u/co88liwan)\
**Post date:** [June 14, 2022, 5:37pm UTC](https://discuss.elastic.co/t/ingress-for-kibana-the-browser-did-not-recognize-the-hostname/307188/2 "2022-06-14T17:37:36Z")

</div>

Hi,

What is the IP behind the hostname "[kibana.some.net](http://kibana.some.net)", did you set something like external IP and DNS on gcloud?

---

<div class="post-metadata">

**Author:** ![Frida](https://avatars.discourse-cdn.com/v4/letter/f/57b2e6/32.png) [@Frida](https://discuss.elastic.co/u/Frida)\
**Post date:** [June 14, 2022, 5:57pm UTC](https://discuss.elastic.co/t/ingress-for-kibana-the-browser-did-not-recognize-the-hostname/307188/3 "2022-06-14T17:57:12Z")

</div>

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

```auto
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](https://s20.directupload.net/images/220614/8qb8l9fs.png)

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!!!

---

<div class="post-metadata">

**Author:** ![co88liwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/co88liwan/32/100345_2.png) [@co88liwan](https://discuss.elastic.co/u/co88liwan)\
**Post date:** [June 14, 2022, 7:41pm UTC](https://discuss.elastic.co/t/ingress-for-kibana-the-browser-did-not-recognize-the-hostname/307188/4 "2022-06-14T19:41:47Z")

</div>

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.

> **[Quickstart: Set up DNS records for a domain name with Cloud DNS  | ...](https://cloud.google.com/dns/docs/set-up-dns-records-domain-name)**

---

<div class="post-metadata">

**Author:** ![Frida](https://avatars.discourse-cdn.com/v4/letter/f/57b2e6/32.png) [@Frida](https://discuss.elastic.co/u/Frida)\
**Post date:** [June 14, 2022, 7:46pm UTC](https://discuss.elastic.co/t/ingress-for-kibana-the-browser-did-not-recognize-the-hostname/307188/5 "2022-06-14T19:46:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![co88liwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/co88liwan/32/100345_2.png) [@co88liwan](https://discuss.elastic.co/u/co88liwan)\
**Post date:** [June 14, 2022, 7:54pm UTC](https://discuss.elastic.co/t/ingress-for-kibana-the-browser-did-not-recognize-the-hostname/307188/6 "2022-06-14T19:54:46Z")

</div>

google what is DNS.

---

<div class="post-metadata">

**Author:** ![Frida](https://avatars.discourse-cdn.com/v4/letter/f/57b2e6/32.png) [@Frida](https://discuss.elastic.co/u/Frida)\
**Post date:** [June 14, 2022, 7:59pm UTC](https://discuss.elastic.co/t/ingress-for-kibana-the-browser-did-not-recognize-the-hostname/307188/7 "2022-06-14T19:59:19Z")

</div>

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:

```auto
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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 12, 2022, 8:00pm UTC](https://discuss.elastic.co/t/ingress-for-kibana-the-browser-did-not-recognize-the-hostname/307188/8 "2022-07-12T20:00:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
