Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with Kong installation via Helm Chart 2.38.0 #12898

Open
1 task done
kartef opened this issue Apr 22, 2024 · 3 comments
Open
1 task done

Problems with Kong installation via Helm Chart 2.38.0 #12898

kartef opened this issue Apr 22, 2024 · 3 comments
Labels
area/kubernetes Issues where Kong is running on top of Kubernetes pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... stale

Comments

@kartef
Copy link

kartef commented Apr 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

3.6

Current Behavior

After installing Kong with the latest Helm Chart, I'm receiving the following error message:

info setup Retrying Kong admin API client call after error {"v"d"}: 0, "retries": "41/60", "error": "making HTTP request: Get "https://localhost:8444/\": dia: 0, "retries": "41/60", "error": "making HTl tcp [::1]:8444: connect: connection refused"}

The installation with Helm Chart version 2.29.0 with same values.yaml works without any problems. I've noticed there was a similar issue reported in #10334, but the PR couldn't help me with that.

The used values.yaml file.:

deployment:
  daemonset: true
#
containerSecurityContext:
  capabilities:
    add: [NET_BIND_SERVICE]
  runAsGroup: 0
  runAsNonRoot: false
  runAsUser: 0
env:
  nginx_http_large_client_header_buffers: 4 32k
  trusted_ips: ...
proxy:
  stream:
  - #
    containerPort: 9000
    servicePort: 9000
    protocol: TCP
  # TLS
  - #
    containerPort: 9443
    servicePort: 9443
    protocol: TCP
    parameters: [ssl]
resources:
  limits:
    cpu: 0.5
    memory: 2Gi
  requests:
    cpu: 0.02
    memory: 700Mi

Expected Behavior

No response

Steps To Reproduce

helm repo add kong https://charts.konghq.com
helm repo update
helm install kong kong/kong -n kong -f values.yaml

Anything else?

No response

@Water-Melon Water-Melon added the area/kubernetes Issues where Kong is running on top of Kubernetes label Apr 26, 2024
@xorduna
Copy link

xorduna commented May 3, 2024

Hi,

I am having the same problem. It worked perfectly one year ago with an older version of the chart.

Couple of things I found:

  • When passing only this configuration (without the runAsUser:0 and runAsGroup:0):
containerSecurityContext: # run as root to bind to lower ports
  capabilities:
    add: [NET_BIND_SERVICE]
  runAsNonRoot: false

It starts and works, but when I patch the service manually to enable the stream (this was how it was described to be done in previous versions) then, the pod is restarted and the same error is thrown again.

  • Tried to enable the AdminAPI with:
admin:
  enabled: true

But it does not work. In fact I don't see anything started.

What I don't understand is that if you install kong without this configuration, it does not checks for this API ...

Any clue?

@xorduna
Copy link

xorduna commented May 5, 2024

After some digging, there is a containerSecurityContext.capabilities.drop: [ ALL ] in the default values.yaml that conflicts with your configuration.

If you change this to:

containerSecurityContext:
  capabilities:
    add: [NET_BIND_SERVICE]
    drop: []
  runAsGroup: 0
  runAsNonRoot: false
  runAsUser: 0

Fixed the problem for me.

@chronolaw chronolaw added the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label May 6, 2024
Copy link
Contributor

This issue is marked as stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes Issues where Kong is running on top of Kubernetes pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... stale
Projects
None yet
Development

No branches or pull requests

4 participants