varnish-operator
varnish-operator copied to clipboard
Need to add annotations to varnish cluster spec
I need to add the following annotations to the cluster definition so that all other objects created by cluster definition ( such as stateful set and pods ) inherit these annotations, currently, it doesn't work.
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9131"
This repo currently isn't being maintained. I have started maintaining a fork of this repo w/the hopes of periodically getting things merged back here. Here's the fork location and podAnnotation
config: https://github.com/cin/varnish-operator/blob/main/api/v1alpha1/varnishcluster_types.go#L93.
@cin thanks. Does it mean do I need to reinstall the operator from the forked repo? and then reinstall the varnish cluster
Sorry for the delay. I was on vacation. In regard to your question about having to reinstall, I am not sure offhand. I have not altered the CRD's name or any of the main fields in the fork, so I think a regular upgrade should work. Have you had a chance to try this yet?