camunda-community-hub / camunda-7-community-helm

Camunda public Kubernetes Helm repo and charts
Apache License 2.0
39 stars 38 forks source link

Camunda on subfolder #23

Closed hodjaev closed 2 years ago

hodjaev commented 2 years ago

Hello. In the values.yaml file if I write ingress section like this it works

ingress:
  enabled: false
  annotations: {}
    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"
  hosts:
    - host: camunda-bpm-platform.local
      paths:
        - /

But if I change path to, for example, /bpm it isn't working.

ingress:
  enabled: false
  annotations: {}
    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"
  hosts:
    - host: camunda-bpm-platform.local
      paths:
        - /bpm

image

aabouzaid commented 2 years ago

Hi @hodjaev this is not related to the Camunda Platform, it's related to Ingress rewrite.

Try this (this is untested, just from top of my mind, also depends on your ingress version):

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: demo-camunda-bpm-platform
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/rewrite-target: /$1$2
spec:
  rules:
  - host: cambpm.kubernetes.example
    http:
      paths:
      - backend:
          serviceName: demo-camunda-bpm-platform
          servicePort: 8080
        path: /bpm(/|$)(.*)
hodjaev commented 2 years ago

@aabouzaid, thank you