TL;DR
ECK wants me to specify spec.policyID
when deploying Elastic Agent, but I'm deploying a standalone Agent. Can I do this?
Details
I am using the Elastic Operator (ECK) to deploy standalone Elastic Agent to my cluster. Since my update to ECK 2.8.0, I've started to receive the following warning when I deploy:
Warning: Agent elastic-system/elastic-agent: spec.PolicyID is empty, spec.PolicyID will become mandatory in a future release
However, when I look up spec.policyID
in the ECK documentation, it states:
PolicyID determines into which Agent Policy this Agent will be enrolled. This field will become mandatory in a future release, default policies are deprecated since 8.1.0.
Additionally, the examples that I've been able to find exclusively show this field being used with a fleet policy.
My question is two-fold:
- Can I provide
spec.policyID
with a standalone policy (e.g., a UUID)? - If yes, what value should I provide?