apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: {{ include "demo-chart.fullname" . }}
  namespace: {{ .Values.ingressNamespace | default .Release.Namespace }}
  annotations:
    kubernetes.io/ingress.class: nginx
spec:
  rules:
    - host: {{ .Values.host }}
      http:
        paths:
          - path: {{ include "demo-chart.path" . }}/
            pathType: Prefix
            backend:
              service:
                name: {{ .Values.keda.httpAddOnProxy }}
                port:
                  number: {{ .Values.keda.httpAddOnPort }}