Hi. There seems to be some unintended behavior related to vmuser.
When useAsDefault is disabled:
When creating Victoriametrics Operator CRD, a port named http is always created by the Operator. In vmagent or some CRDs, the default port can be modified through .spec.port, And this value is used for the port and targetPort of the service. When a Victoriametrics Operator CRD is specified through vmuser's .spec.targetRefs.crd, the operator generates a url_prefix config using the above port.
When useAsDefault is enabled:
If useAsDefault of Victoriametrics Operator CRD is enabled, the service's port and targetPort may be different. However, vmuser still generates the url_prefix by referring to .spec.port or the default port value. This causes inaccessibility issues.
Hi. There seems to be some unintended behavior related to vmuser.
When useAsDefault is disabled: When creating Victoriametrics Operator CRD, a port named
http
is always created by the Operator. In vmagent or some CRDs, the default port can be modified through.spec.port
, And this value is used for theport
andtargetPort
of the service. When a Victoriametrics Operator CRD is specified through vmuser's.spec.targetRefs.crd
, the operator generates aurl_prefix
config using the above port.When useAsDefault is enabled: If useAsDefault of Victoriametrics Operator CRD is enabled, the service's
port
andtargetPort
may be different. However, vmuser still generates theurl_prefix
by referring to.spec.port
or the default port value. This causes inaccessibility issues.example)
VMAlert manifest with useAsDefault
VMUser manifest with VMAlert target
VMAuth config generated by operator