But the most annoying part is the pod is in CrashLoopBackOff status as the vmagent container does not start due to this error
- containerID: containerd://046d4d85d62373b620655b750cdb0856a01ed974ef9dd76cf9bb6da0a9af1507
image: docker.io/victoriametrics/vmagent:v1.101.0
imageID: docker.io/victoriametrics/vmagent@sha256:a17f68fe4024cb93eec23bc5ba52a5c45f645f18e2dc929b7743a239b4212bcb
lastState:
terminated:
containerID: containerd://046d4d85d62373b620655b750cdb0856a01ed974ef9dd76cf9bb6da0a9af1507
exitCode: 2
finishedAt: "2024-06-26T16:31:56Z"
message: |
flag provided but not defined: -license
vmagent collects metrics data via popular data ingestion protocols and routes it to VictoriaMetrics.
See the docs at https://docs.victoriametrics.com/vmagent/ .
Run "/vmagent-prod -help" in order to see the description for all the available flags
reason: Error
startedAt: "2024-06-26T16:31:56Z"
name: vmagent
Ofc without the license in the spec of the VMAgent, the vmagent pod starts correctly.
What could be wrong here?
The VM operators created a sts from a VMagent CRD with following spec (https://docs.victoriametrics.com/operator/api/#vmagentspec)
The sts contains all the information provided by the VMAgent but there 2 lines of
- license=
in theargs
section for the containervmagent
But the most annoying part is the pod is in
CrashLoopBackOff
status as thevmagent
container does not start due to this errorOfc without the
license
in the spec of the VMAgent, the vmagent pod starts correctly. What could be wrong here?