deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-managed/fleet-enrollment-token-patch.yaml (16 lines of code) (raw):
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: FLEET_ENROLLMENT_TOKEN
valueFrom:
secretKeyRef:
name: elastic-agent-creds
key: enrollment_token
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: FLEET_URL
valueFrom:
configMapKeyRef:
name: elastic-agent-configs
key: host