Custom domain using Nginx proxy in kubernetes

Hi,
Since using https://12312jsdjsfavhjdf.elastic.com is a pain point for our customers. So to have a custom domain like https://kibana.domain.com I have an Nginx proxy in front of the elastic cloud so our custom domain will be used to access kibana and requests will be routed through the proxy. it was working fine to some extent yet suddenly it has become too slow. any other ways to achieve this with better performance?

steps:

  1. Create an Nginx image with https://12312jsdjsfavhjdf.elastic.com as a proxy pass.
    server{
    listen 80;
    server_name localhost;
    location /{
    proxy_pass "https://12312jsdjsfavhjdf.elastic.com";

}}
2. Create a deployment and service with the above-created image.
3. Have an Nginx proxy ingress on Kubernetes in front of service.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kibanaingress
namespace: dev
annotations:
kubernetes.io/ingress.class: kibanaingress
spec:
tls:

  • hosts:
  • host:
    http:
    paths:
    • backend:
      serviceName: kibana-service
      servicePort: 80
      path: /

Are you doing cache invalidation anywhere? I don't why any of the methods would impact Kibana that much other than maybe doing cache invalidation.

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