-
Notifications
You must be signed in to change notification settings - Fork 98
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
failed to reload NGINX: failed to send the HUP signal to NGINX main: operation not permitted #1055
Comments
Hi @poneding, did you install version 0.6 using the latest released manifest or helm chart? https://github.com/nginxinc/nginx-kubernetes-gateway/tree/v0.6.0/deploy |
Hi @sjberman , I install v0.6 and main branch following |
Can you provide the deployment manifest that you used to install? Also, are you running this in a cloud-provided kubernetes environment or in a local kubernetes environment? |
In a cloud virtual machine
|
I install kubernetes by kubeadm |
If you attempt to deploy v0.5.0 using that branch and installation guide, does it succeed? I would also be curious if the v0.6.0 deployment worked for you in a local kind cluster, for example. Just trying to narrow down if there's an environmental permissions issue or not. |
Ok, let me try it and tell you result later🤩 |
Deploy release-0.5, this time i got the correct result: root@cloud ~$ k describe gateways.gateway.networking.k8s.io gateway
Name: gateway
Namespace: default
Labels: domain=k8s-gateway.nginx.org
Annotations: <none>
API Version: gateway.networking.k8s.io/v1beta1
Kind: Gateway
Metadata:
Creation Timestamp: 2023-09-14T01:14:11Z
Generation: 1
Resource Version: 15010726
UID: 3d4e252e-4ede-4c9d-8181-bc8572be63e2
Spec:
Gateway Class Name: nginx
Listeners:
Allowed Routes:
Namespaces:
From: Same
Hostname: *.example.com
Name: http
Port: 80
Protocol: HTTP
Status:
Addresses:
Type: IPAddress
Value: 10.244.0.100
Conditions:
Last Transition Time: 2023-09-14T01:17:20Z
Message: Gateway is accepted
Observed Generation: 1
Reason: Accepted
Status: True
Type: Accepted
Last Transition Time: 2023-09-14T01:17:20Z
Message: Gateway is programmed
Observed Generation: 1
Reason: Programmed
Status: True
Type: Programmed
Listeners:
Attached Routes: 2
Conditions:
Last Transition Time: 2023-09-14T01:17:20Z
Message: Listener is accepted
Observed Generation: 1
Reason: Accepted
Status: True
Type: Accepted
Last Transition Time: 2023-09-14T01:17:20Z
Message: Listener is programmed
Observed Generation: 1
Reason: Programmed
Status: True
Type: Programmed
Last Transition Time: 2023-09-14T01:17:20Z
Message: All references are resolved
Observed Generation: 1
Reason: ResolvedRefs
Status: True
Type: ResolvedRefs
Last Transition Time: 2023-09-14T01:17:20Z
Message: No conflicts
Observed Generation: 1
Reason: NoConflicts
Status: False
Type: Conflicted
Name: http
Supported Kinds:
Group: gateway.networking.k8s.io
Kind: HTTPRoute
Events: <none>
root@cloud ~$ curl --resolve cafe.example.com:$GW_PORT:$GW_IP http://cafe.example.com:$GW_PORT/coffee
Server address: 10.244.0.98:8080
Server name: coffee-7dd75bc79b-2fldc
Date: 14/Sep/2023:01:19:23 +0000
URI: /coffee
Request ID: 6afc2955400ccfc25574c9696a9fa792 And then, i retry deloy latest main branch, but as the same, error log and cant not access. |
Ok, our security contexts in the manifest for the Pod/containers have changed since our last release. Using the v0.6 release, could you try messing around with those? For example, setting |
The fact is that I get the correct result when I set allowPrivilegeEscalation to true. runAsNonRoot does not affect to the result. Will allowPrivilegeEscalation be set to true by default in future releases? |
Here is our plan for addressing this issue:
|
@poneding In initial testing, we aren't seeing the permissions issues in other k8s environments, so I'm curious if there is a setting that you have configured in your kubeadm deployment that would require privilege escalation for system calls. |
Describe the bug
I ran nginx-gateway and demo with the guide, but I couldn't get the correct results.
Get Error:
failed to reload NGINX: failed to send the HUP signal to NGINX main: operation not permitted
I have no idea why this problem occurs, and I don't know how to solve it. Look for help.
Gateway.Status:
nginx-gateway pod error logs:
Info:
The text was updated successfully, but these errors were encountered: