Replies: 1 comment 3 replies
-
I think the reason that the NGINX Agent is trying to remove the file is because it's not being provided directly by our control plane (since you're mounting it), and any file not provided by our control plane will be cleaned up unless we explicitly tell agent to ignore it. We'd need to implement a way to add any mounted files into that ignore list. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello NGF team,
we got another odd case where NGF is having problems applying the NGF config.
We're mounting a root certificate into the data plane deployment by using the following values in the helm chart:
The SnippetsFilter looks like this:
After rolling the control plane, the gateway goes into programmed state for a while. It seems upon the first change we're seeing this in the Gateway resource:
Message: The Gateway is not programmed due to a failure to reload nginx with the configuration: msg: Config apply failed, rolling back config; error: error deleting file: /etc/nginx/certs/root-ca.crt error: remove /etc/nginx/certs/root-ca.crt: read-only file system
Now of course, the simple answer might be to just move the cert to a different folder, because maybe it doesn't like that the cert file is mounted to
/etc/nginx/
. Otherwise, I'm a little baffled because secret volumes always seem to be added as read-only: https://kubernetes.io/docs/concepts/storage/volumes/#secret.Beta Was this translation helpful? Give feedback.
All reactions