How can I add annotations to the NGF data plane Service without manually editing the Service? #4486
Replies: 1 comment 1 reply
-
|
@jinhee6930 Looks like the docs are incorrect, we'll fix that. You can set annotations either in the Gateway's infrastructure settings or using a patch in the NginxProxy API. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
(I used a translator. The senten)
Hello,
I’m currently using NGINX Gateway Fabric and trying to configure annotations on the data plane Service in a declarative way.
According to the documentation below, it looks like spec.kubernetes.service.annotations can be used in the NginxProxy resource:
https://docs.nginx.com/nginx-gateway-fabric/how-to/data-plane-configuration/#configure-infrastructure-related-settings
However, when I check the API reference:
https://docs.nginx.com/nginx-gateway-fabric/reference/api/#gateway.nginx.org%2fv1alpha2.ServiceSpec
I don’t see any field related to annotations under ServiceSpec.
When I try to create the NginxProxy resource with service annotations, I get the following error:
My questions:
Is it currently supported to configure annotations on the NGF data plane Service via NginxProxy?
If not, is the documentation outdated, or is this feature planned for a future release?
From an operational perspective, we manage multiple clusters and systems, so manually modifying the Service with kubectl edit svc is not a viable option.
Any guidance or clarification would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions