cetic / helm-nifi

Helm Chart for Apache Nifi
Apache License 2.0
215 stars 228 forks source link

Can't enable nodePort with https #276

Closed ghost closed 1 year ago

ghost commented 2 years ago

Describe the bug When trying to enable nodeport with https getting like this:

replicaCount: 1
image:
   tag: 1.16.3
   pullSecret: regcred
service:
  type: NodePort

Version of Helm, Kubernetes and the Nifi chart: nifi: v1.1.2 helm: 3.9.2 kubernetes: 1.2

What happened: All pods are running I can access nifi with port forwarding but when I try to access through nodeport I get: System Error

The request contained an invalid host header [ip:32623] in the request [/nifi/]. Check for request manipulation or third-party intercept.
Valid host headers are [empty] or:

    127.0.0.1
    127.0.0.1:8443
    localhost
    localhost:8443
    [::1]
    [::1]:8443
    nifi-0.nifi-headless.nifi.svc.cluster.local
    nifi-0.nifi-headless.nifi.svc.cluster.local:8443
    nifi.nifi.svc

What you expected to happen: I should get nifi main page

How to reproduce it (as minimally and precisely as possible): helm install with the following parameters

replicaCount: 1
image:
   tag: 1.16.3
   pullSecret: regcred
service:
  type: NodePort
michdom44 commented 1 year ago

Hello, I have the same problem. Please how to configure helm --set parameter to fix it? Thanks for help! Michel.

JavadHosseini commented 1 year ago

I think you should use HTTPS before IP:port. Also should add this in your values file. webProxyHost: <your-IP>:30236

md-software commented 1 year ago

Thanks for answer. It works fine now for me.

banzo commented 1 year ago

@oktayalizada does this fix your issue?

github-actions[bot] commented 1 year ago

This issue is stale because it has not seen recent activity. Remove stale label or comment or this will be closed.