Kubernetes multiple ingress issue

I’m a little noob to kubernetes to be honest.

I’m trying to deploy multiple apps to an Azure Kubernetes Services cluster.

I deployed a Budibase app using helm.

Then I deployed an Nginx Ingress Controller and an Ingress to publish the app. It work well. Here is the configuration files

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code># values.yaml
# Ingress configuration
ingress:
enabled: true
className: "nginx"
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod" # Remplacez par le nom de votre ClusterIssuer
hosts:
- host: "budibase-kube.***.******-******.***" # Remplacez par votre nom de domaine
paths:
- path: /
pathType: Prefix
backend:
service:
name: proxy-service # Assurez-vous que ce nom de service correspond à votre service Budibase
port:
number: 10000
tls:
- hosts:
- "budibase-kube.***.******-******.***" # Remplacez par votre nom de domaine
secretName: budibase-tls # Nom du secret Kubernetes pour stocker le certificat</code>
<code># values.yaml # Ingress configuration ingress: enabled: true className: "nginx" annotations: cert-manager.io/cluster-issuer: "letsencrypt-prod" # Remplacez par le nom de votre ClusterIssuer hosts: - host: "budibase-kube.***.******-******.***" # Remplacez par votre nom de domaine paths: - path: / pathType: Prefix backend: service: name: proxy-service # Assurez-vous que ce nom de service correspond à votre service Budibase port: number: 10000 tls: - hosts: - "budibase-kube.***.******-******.***" # Remplacez par votre nom de domaine secretName: budibase-tls # Nom du secret Kubernetes pour stocker le certificat</code>
# values.yaml

# Ingress configuration
ingress:
  enabled: true
  className: "nginx"
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod" # Remplacez par le nom de votre ClusterIssuer
  hosts:
    - host: "budibase-kube.***.******-******.***" # Remplacez par votre nom de domaine
      paths:
        - path: /
          pathType: Prefix
          backend:
            service:
              name: proxy-service # Assurez-vous que ce nom de service correspond à votre service Budibase
              port:
                number: 10000
  tls:
    - hosts:
        - "budibase-kube.***.******-******.***" # Remplacez par votre nom de domaine
      secretName: budibase-tls # Nom du secret Kubernetes pour stocker le certificat

This work well. I can connect to the application and it generate an SSL certificate well.

Then, I tried to deploy an Infisical instance in the same cluster. I want to use the same ingress controller.

Here is the configuration file:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>replicaCount: 1
image:
repository: infisical/infisical
tag: latest
pullPolicy: IfNotPresent
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging
hosts:
- host: "infisical.***.******-******.***"
paths:
- path: /
pathType: Prefix
backend:
service:
name: infisical-backend
port:
number: 8080
tls:
- hosts:
- "infisical.***.******-******.***"
secretName: infisical-tls
envFromSecret: infisical-secrets</code>
<code>replicaCount: 1 image: repository: infisical/infisical tag: latest pullPolicy: IfNotPresent ingress: enabled: true className: nginx annotations: cert-manager.io/cluster-issuer: letsencrypt-staging hosts: - host: "infisical.***.******-******.***" paths: - path: / pathType: Prefix backend: service: name: infisical-backend port: number: 8080 tls: - hosts: - "infisical.***.******-******.***" secretName: infisical-tls envFromSecret: infisical-secrets</code>
replicaCount: 1

image:
  repository: infisical/infisical
  tag: latest
  pullPolicy: IfNotPresent



ingress:
  enabled: true
  className: nginx
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-staging
  hosts:
    - host: "infisical.***.******-******.***"
      paths:
        - path: /
          pathType: Prefix
          backend:
            service:
              name: infisical-backend
              port:
                number: 8080
  tls:
    - hosts:
        - "infisical.***.******-******.***"
      secretName: infisical-tls

envFromSecret: infisical-secrets

But with this use case. The host part of the ingress isn’t the host I’ve setup in the file. It keep being ” * “.

Here is the budibase ingress describe:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>Name: budibase-budibase
Labels: app.kubernetes.io/instance=budibase
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=budibase
app.kubernetes.io/version=2.26.2
helm.sh/chart=budibase-3.0.129
Namespace: budibase
Address: ***.***.***.***
Ingress Class: nginx
Default backend: <default>
TLS:
budibase-tls terminates budibase-kube.***.******-******.***
Rules:
Host Path Backends
---- ---- --------
budibase-kube.***.******-******.***
/ proxy-service:10000 (10.224.0.173:10000)
Annotations: cert-manager.io/cluster-issuer: letsencrypt-prod
meta.helm.sh/release-name: budibase
meta.helm.sh/release-namespace: budibase
Events: <none> <none></code>
<code>Name: budibase-budibase Labels: app.kubernetes.io/instance=budibase app.kubernetes.io/managed-by=Helm app.kubernetes.io/name=budibase app.kubernetes.io/version=2.26.2 helm.sh/chart=budibase-3.0.129 Namespace: budibase Address: ***.***.***.*** Ingress Class: nginx Default backend: <default> TLS: budibase-tls terminates budibase-kube.***.******-******.*** Rules: Host Path Backends ---- ---- -------- budibase-kube.***.******-******.*** / proxy-service:10000 (10.224.0.173:10000) Annotations: cert-manager.io/cluster-issuer: letsencrypt-prod meta.helm.sh/release-name: budibase meta.helm.sh/release-namespace: budibase Events: <none> <none></code>
Name:             budibase-budibase
Labels:           app.kubernetes.io/instance=budibase
                  app.kubernetes.io/managed-by=Helm
                  app.kubernetes.io/name=budibase
                  app.kubernetes.io/version=2.26.2
                  helm.sh/chart=budibase-3.0.129
Namespace:        budibase
Address:          ***.***.***.***
Ingress Class:    nginx
Default backend:  <default>
TLS:
  budibase-tls terminates budibase-kube.***.******-******.***
Rules:
  Host                                 Path  Backends
  ----                                 ----  --------
  budibase-kube.***.******-******.***
                                       /   proxy-service:10000 (10.224.0.173:10000)
Annotations:                           cert-manager.io/cluster-issuer: letsencrypt-prod
                                       meta.helm.sh/release-name: budibase
                                       meta.helm.sh/release-namespace: budibase
Events:                                <none>                              <none>

And here is the infisical ingress describe:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>Name: infisical-ingress
Labels: app.kubernetes.io/managed-by=Helm
Namespace: infisical
Address: ***.***.***.***
Ingress Class: nginx
Default backend: <default>
TLS:
infisical-tls terminates infisical.***.******-******.***
Rules:
Host Path Backends
---- ---- --------
*
/ infisical-backend:8080 (10.224.0.174:8080,10.224.0.26:8080)
/ss-webhook infisical-backend:8080 (10.224.0.174:8080,10.224.0.26:8080)
Annotations: cert-manager.io/cluster-issuer: letsencrypt-staging
meta.helm.sh/release-name: infisical
meta.helm.sh/release-namespace: infisical
Events: <none></code>
<code>Name: infisical-ingress Labels: app.kubernetes.io/managed-by=Helm Namespace: infisical Address: ***.***.***.*** Ingress Class: nginx Default backend: <default> TLS: infisical-tls terminates infisical.***.******-******.*** Rules: Host Path Backends ---- ---- -------- * / infisical-backend:8080 (10.224.0.174:8080,10.224.0.26:8080) /ss-webhook infisical-backend:8080 (10.224.0.174:8080,10.224.0.26:8080) Annotations: cert-manager.io/cluster-issuer: letsencrypt-staging meta.helm.sh/release-name: infisical meta.helm.sh/release-namespace: infisical Events: <none></code>
Name:             infisical-ingress
Labels:           app.kubernetes.io/managed-by=Helm
Namespace:        infisical
Address:          ***.***.***.***
Ingress Class:    nginx
Default backend:  <default>
TLS:
  infisical-tls terminates infisical.***.******-******.***
Rules:
  Host        Path  Backends
  ----        ----  --------
  *
              /             infisical-backend:8080 (10.224.0.174:8080,10.224.0.26:8080)
              /ss-webhook   infisical-backend:8080 (10.224.0.174:8080,10.224.0.26:8080)
Annotations:  cert-manager.io/cluster-issuer: letsencrypt-staging
              meta.helm.sh/release-name: infisical
              meta.helm.sh/release-namespace: infisical
Events:       <none>

I don’t understand why the host keep being ” * ” instead of infisical... like I mentionned in the values.yaml file…

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật